Author: bdaw
Date: 2008-01-06 10:42:26 -0500 (Sun, 06 Jan 2008)
New Revision: 9440
Added:
modules/template/
modules/template/build/
modules/template/build/licences/
modules/template/build/misc/
modules/template/build/pom.xml
modules/template/module-a/
modules/template/module-a/pom.xml
modules/template/module-a/src/
modules/template/module-a/src/main/
modules/template/module-a/src/main/java/
modules/template/module-a/src/main/java/org/
modules/template/module-a/src/main/java/org/jboss/
modules/template/module-a/src/main/java/org/jboss/portal/
modules/template/module-a/src/main/java/org/jboss/portal/templatemodule/
modules/template/module-a/src/main/java/org/jboss/portal/templatemodule/a/
modules/template/module-a/src/main/java/org/jboss/portal/templatemodule/a/SampleModuleAClass.java
modules/template/module-a/src/main/resources/
modules/template/module-a/src/test/
modules/template/module-a/src/test/java/
modules/template/module-a/src/test/java/org/
modules/template/module-a/src/test/java/org/jboss/
modules/template/module-a/src/test/java/org/jboss/portal/
modules/template/module-a/src/test/java/org/jboss/portal/templatemodule/
modules/template/module-a/src/test/java/org/jboss/portal/templatemodule/a/
modules/template/module-a/src/test/java/org/jboss/portal/templatemodule/a/SampleModuleATest.java
modules/template/module-a/src/test/resources/
modules/template/module-b/
modules/template/module-b/module-b1/
modules/template/module-b/module-b1/pom.xml
modules/template/module-b/module-b1/src/
modules/template/module-b/module-b1/src/main/
modules/template/module-b/module-b1/src/main/java/
modules/template/module-b/module-b1/src/main/java/org/
modules/template/module-b/module-b1/src/main/java/org/jboss/
modules/template/module-b/module-b1/src/main/java/org/jboss/portal/
modules/template/module-b/module-b1/src/main/java/org/jboss/portal/templatemodule/
modules/template/module-b/module-b1/src/main/java/org/jboss/portal/templatemodule/c/
modules/template/module-b/module-b1/src/main/java/org/jboss/portal/templatemodule/c/SampleModuleB1Class.java
modules/template/module-b/module-b1/src/main/resources/
modules/template/module-b/module-b1/src/test/
modules/template/module-b/module-b1/src/test/java/
modules/template/module-b/module-b1/src/test/resources/
modules/template/module-b/module-b2/
modules/template/module-b/module-b2/pom.xml
modules/template/module-b/module-b2/src/
modules/template/module-b/module-b2/src/main/
modules/template/module-b/module-b2/src/main/java/
modules/template/module-b/module-b2/src/main/java/org/
modules/template/module-b/module-b2/src/main/java/org/jboss/
modules/template/module-b/module-b2/src/main/java/org/jboss/portal/
modules/template/module-b/module-b2/src/main/java/org/jboss/portal/templatemodule/
modules/template/module-b/module-b2/src/main/java/org/jboss/portal/templatemodule/d/
modules/template/module-b/module-b2/src/main/java/org/jboss/portal/templatemodule/d/SampleModuleB2Class.java
modules/template/module-b/module-b2/src/main/resources/
modules/template/module-b/module-b2/src/test/
modules/template/module-b/module-b2/src/test/java/
modules/template/module-b/module-b2/src/test/resources/
modules/template/module-b/pom.xml
modules/template/module-c/
modules/template/module-c/pom.xml
modules/template/module-c/src/
modules/template/module-c/src/main/
modules/template/module-c/src/main/java/
modules/template/module-c/src/main/java/org/
modules/template/module-c/src/main/java/org/jboss/
modules/template/module-c/src/main/java/org/jboss/portal/
modules/template/module-c/src/main/java/org/jboss/portal/templatemodule/
modules/template/module-c/src/main/java/org/jboss/portal/templatemodule/c/
modules/template/module-c/src/main/java/org/jboss/portal/templatemodule/c/SampleModuleCClass.java
modules/template/module-c/src/main/resources/
modules/template/module-c/src/test/
modules/template/module-c/src/test/java/
modules/template/module-c/src/test/java/org/
modules/template/module-c/src/test/java/org/jboss/
modules/template/module-c/src/test/java/org/jboss/portal/
modules/template/module-c/src/test/java/org/jboss/portal/templatemodule/
modules/template/module-c/src/test/java/org/jboss/portal/templatemodule/c/
modules/template/module-c/src/test/java/org/jboss/portal/templatemodule/c/SampleModuleCTest.java
modules/template/module-c/src/test/resources/
modules/template/module-c/src/test/resources/jboss-unit.xml
modules/template/pom.xml
Log:
initial commit of template module
Copied: modules/template/build/licences (from rev 9433,
modules/identity/trunk/build/licences)
Copied: modules/template/build/misc (from rev 9433, modules/identity/trunk/build/misc)
Copied: modules/template/build/pom.xml (from rev 9436,
modules/identity/trunk/build/pom.xml)
===================================================================
--- modules/template/build/pom.xml (rev 0)
+++ modules/template/build/pom.xml 2008-01-06 15:42:26 UTC (rev 9440)
@@ -0,0 +1,123 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ This pom functions as a default configuration. The subproject
+ poms each inherit configuration from this one.
+
+ When adding version information for an artifact please do the following
+ - add a version property for the specific version
+ - add a dependency in the dependencyManagement section which refers to
+ the property
+-->
+<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
+ <parent>
+ <groupId>org.jboss.portal</groupId>
+ <artifactId>jboss-portal-parent</artifactId>
+ <version>1-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.jboss.portal.templatemodule</groupId>
+ <artifactId>jboss-portal-modules-templatemodule</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <packaging>pom</packaging>
+ <name>JBoss Portal TemplateModule</name>
+ <description>JBoss Portal Template Module</description>
+
+ <!--All artifacts versions should be defined here-->
+ <properties>
+ <version.junit>3.8.1</version.junit>
+ <version.jboss.unit>1.1.0-SNAPSHOT</version.jboss.unit>
+ </properties>
+
+
+ <!--JBoss reporitories to be able to grab jboss-portal-parent pom-->
+ <repositories>
+ <repository>
+ <id>repository.jboss.org</id>
+ <name>JBoss Repository</name>
+ <layout>default</layout>
+ <
url>http://repository.jboss.org/maven2/</url>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ </repository>
+ <repository>
+ <id>snapshots.jboss.org</id>
+ <name>JBoss Snapshots Repository</name>
+ <layout>default</layout>
+ <
url>http://snapshots.jboss.org/maven2/</url>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ </repository>
+ </repositories>
+
+
+ <build>
+ <!--It is important to specify version for every plugin to avoid build errors
+ when maven grab newer version with different behaviour-->
+
+ <plugins>
+ <!--The <skip>true</skip> will by disable default surefire call
in all submodules-->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.3.1</version>
+ <configuration>
+ <skip>true</skip>
+ </configuration>
+ </plugin>
+ </plugins>
+
+ <pluginManagement>
+ <plugins>
+ <!--Only needed if you use jboss-unit maven2 plugin for tests (used in
module-c)-->
+ <plugin>
+ <groupId>org.jboss.unit</groupId>
+ <artifactId>jboss-unit-tooling-maven2</artifactId>
+ <version>1.1.0-SNAPSHOT</version>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+
+ </build>
+
+
+
+ <!--Sample additional plugin repository. This one is not needed if you don't
use maven-antrun-extended-plugin
+ (used in module-c)-->
+ <pluginRepositories>
+ <pluginRepository>
+ <
id>java.net maven repository</id>
+ <
url>http://download.java.net/maven/2/</url>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ </pluginRepository>
+ </pluginRepositories>
+
+ <dependencyManagement>
+ <!-- The parent pom manages the inter-dependencies of the modules. -->
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>${version.junit}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.unit</groupId>
+ <artifactId>jboss-unit</artifactId>
+ <version>${version.jboss.unit}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.unit</groupId>
+ <artifactId>jboss-unit-tooling-ant</artifactId>
+ <version>${version.jboss.unit}</version>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
+</project>
Added: modules/template/module-a/pom.xml
===================================================================
--- modules/template/module-a/pom.xml (rev 0)
+++ modules/template/module-a/pom.xml 2008-01-06 15:42:26 UTC (rev 9440)
@@ -0,0 +1,36 @@
+<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
+ <parent>
+ <groupId>org.jboss.portal.templatemodule</groupId>
+ <artifactId>jboss-portal-modules-templatemodule</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <relativePath>../build/pom.xml</relativePath>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>jboss-portal-templatemodule-a</artifactId>
+ <packaging>jar</packaging>
+ <name>JBoss Portal TemplateModule ModuleA</name>
+
+ <dependencies>
+ <dependency>
+ <artifactId>junit</artifactId>
+ <groupId>junit</groupId>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <skip>false</skip>
+ <includes>
+ <include>**/SampleModuleATest.java</include>
+ </includes>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
\ No newline at end of file
Added:
modules/template/module-a/src/main/java/org/jboss/portal/templatemodule/a/SampleModuleAClass.java
===================================================================
---
modules/template/module-a/src/main/java/org/jboss/portal/templatemodule/a/SampleModuleAClass.java
(rev 0)
+++
modules/template/module-a/src/main/java/org/jboss/portal/templatemodule/a/SampleModuleAClass.java 2008-01-06
15:42:26 UTC (rev 9440)
@@ -0,0 +1,31 @@
+/*
+* JBoss, a division of Red Hat
+* Copyright 2006, Red Hat Middleware, LLC, and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+*/
+
+package org.jboss.portal.templatemodule.a;
+
+/**
+ * @author <a href="mailto:boleslaw dot dawidowicz at redhat anotherdot
com">Boleslaw Dawidowicz</a>
+ * @version : 0.1 $
+ */
+public class SampleModuleAClass
+{
+}
Added:
modules/template/module-a/src/test/java/org/jboss/portal/templatemodule/a/SampleModuleATest.java
===================================================================
---
modules/template/module-a/src/test/java/org/jboss/portal/templatemodule/a/SampleModuleATest.java
(rev 0)
+++
modules/template/module-a/src/test/java/org/jboss/portal/templatemodule/a/SampleModuleATest.java 2008-01-06
15:42:26 UTC (rev 9440)
@@ -0,0 +1,35 @@
+/*
+* JBoss, a division of Red Hat
+* Copyright 2006, Red Hat Middleware, LLC, and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+*/
+package org.jboss.portal.templatemodule.a;
+
+
+/**
+ * @author <a href="mailto:boleslaw dot dawidowicz at redhat anotherdot
com">Boleslaw Dawidowicz</a>
+ * @version : 0.1 $
+ */
+public class SampleModuleATest
+{
+ public void testSimple() throws Exception
+ {
+ System.out.println("######## Running simple test with surefire
plugin!");
+ }
+}
Added: modules/template/module-b/module-b1/pom.xml
===================================================================
--- modules/template/module-b/module-b1/pom.xml (rev 0)
+++ modules/template/module-b/module-b1/pom.xml 2008-01-06 15:42:26 UTC (rev 9440)
@@ -0,0 +1,14 @@
+<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
+ <parent>
+ <groupId>org.jboss.portal.templatemodule</groupId>
+ <artifactId>jboss-portal-modules-templatemodule</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <relativePath>../../build/pom.xml</relativePath>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>jboss-portal-templatemodule-b1</artifactId>
+ <packaging>jar</packaging>
+ <name>JBoss Portal TemplateModule ModuleB1</name>
+
+</project>
\ No newline at end of file
Added:
modules/template/module-b/module-b1/src/main/java/org/jboss/portal/templatemodule/c/SampleModuleB1Class.java
===================================================================
---
modules/template/module-b/module-b1/src/main/java/org/jboss/portal/templatemodule/c/SampleModuleB1Class.java
(rev 0)
+++
modules/template/module-b/module-b1/src/main/java/org/jboss/portal/templatemodule/c/SampleModuleB1Class.java 2008-01-06
15:42:26 UTC (rev 9440)
@@ -0,0 +1,31 @@
+/*
+* JBoss, a division of Red Hat
+* Copyright 2006, Red Hat Middleware, LLC, and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+*/
+
+package org.jboss.portal.templatemodule.c;
+
+/**
+ * @author <a href="mailto:boleslaw dot dawidowicz at redhat anotherdot
com">Boleslaw Dawidowicz</a>
+ * @version : 0.1 $
+ */
+public class SampleModuleB1Class
+{
+}
Added: modules/template/module-b/module-b2/pom.xml
===================================================================
--- modules/template/module-b/module-b2/pom.xml (rev 0)
+++ modules/template/module-b/module-b2/pom.xml 2008-01-06 15:42:26 UTC (rev 9440)
@@ -0,0 +1,23 @@
+<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
+ <parent>
+ <groupId>org.jboss.portal.templatemodule</groupId>
+ <artifactId>jboss-portal-modules-templatemodule</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <relativePath>../../build/pom.xml</relativePath>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>jboss-portal-templatemodule-b2</artifactId>
+ <packaging>jar</packaging>
+ <name>JBoss Portal TemplateModule ModuleB2</name>
+
+ <!--Just a sample how we can refer to other modules in a project-->
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss.portal.templatemodule</groupId>
+ <artifactId>jboss-portal-templatemodule-b1</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ </dependencies>
+
+</project>
\ No newline at end of file
Added:
modules/template/module-b/module-b2/src/main/java/org/jboss/portal/templatemodule/d/SampleModuleB2Class.java
===================================================================
---
modules/template/module-b/module-b2/src/main/java/org/jboss/portal/templatemodule/d/SampleModuleB2Class.java
(rev 0)
+++
modules/template/module-b/module-b2/src/main/java/org/jboss/portal/templatemodule/d/SampleModuleB2Class.java 2008-01-06
15:42:26 UTC (rev 9440)
@@ -0,0 +1,31 @@
+/*
+* JBoss, a division of Red Hat
+* Copyright 2006, Red Hat Middleware, LLC, and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+*/
+
+package org.jboss.portal.templatemodule.d;
+
+/**
+ * @author <a href="mailto:boleslaw dot dawidowicz at redhat anotherdot
com">Boleslaw Dawidowicz</a>
+ * @version : 0.1 $
+ */
+public class SampleModuleB2Class
+{
+}
Copied: modules/template/module-b/pom.xml (from rev 9433,
modules/test/trunk/tooling/pom.xml)
===================================================================
--- modules/template/module-b/pom.xml (rev 0)
+++ modules/template/module-b/pom.xml 2008-01-06 15:42:26 UTC (rev 9440)
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
+ <parent>
+ <groupId>org.jboss.portal.templatemodule</groupId>
+ <artifactId>jboss-portal-modules-templatemodule</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <relativePath>../build/pom.xml</relativePath>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.jboss.portal.templatemodule</groupId>
+ <artifactId>jboss-portal-tempatemodule-b-aggregator</artifactId>
+ <packaging>pom</packaging>
+ <name>JBoss Portal TemplateModule ModuleB (aggregator)</name>
+ <version>1.0-SNAPSHOT</version>
+
+
+ <modules>
+ <module>module-b1</module>
+ <module>module-b2</module>
+ </modules>
+
+</project>
\ No newline at end of file
Added: modules/template/module-c/pom.xml
===================================================================
--- modules/template/module-c/pom.xml (rev 0)
+++ modules/template/module-c/pom.xml 2008-01-06 15:42:26 UTC (rev 9440)
@@ -0,0 +1,134 @@
+<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
+ <parent>
+ <groupId>org.jboss.portal.templatemodule</groupId>
+ <artifactId>jboss-portal-modules-templatemodule</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <relativePath>../build/pom.xml</relativePath>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>jboss-portal-templatemodule-c</artifactId>
+ <packaging>jar</packaging>
+ <name>JBoss Portal TemplateModule ModuleC</name>
+
+ <dependencies>
+
+
+ <!--TEST SCOPE-->
+ <dependency>
+ <groupId>org.jboss.unit</groupId>
+ <artifactId>jboss-unit</artifactId>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+
+ <build>
+
+ <plugins>
+
+ <!--Example of JBoss Unit tests with maven2 plugin-->
+ <plugin>
+ <groupId>org.jboss.unit</groupId>
+ <artifactId>jboss-unit-tooling-maven2</artifactId>
+ <executions>
+ <execution>
+ <phase>test</phase>
+ <goals>
+ <goal>execute</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <testsuites>
+ <testsuite>
+ <config>jboss-unit.xml</config>
+ </testsuite>
+ </testsuites>
+ <reports>
+ <xml>target/tests/reports/xml</xml>
+ <html>target/tests/reports/html</html>
+ </reports>
+ </configuration>
+ </plugin>
+
+ <!--If tests require to start AS with cargo and do more complex stuff you
should consider using antrun-->
+ <plugin>
+
<!--<groupId>org.jvnet.maven-antrun-extended-plugin</groupId>-->
+
+ <!--A temporary fork of orginal extended plugin until they update to newer
ant version-->
+ <groupId>org.jboss.unit</groupId>
+
+ <artifactId>maven-antrun-extended-plugin</artifactId>
+ <version>1.10-SNAPSHOT</version>
+
+ <dependencies>
+
+ <dependency>
+ <groupId>org.jboss.unit</groupId>
+ <artifactId>jboss-unit-tooling-ant</artifactId>
+ <version>${version.jboss.unit}</version>
+ </dependency>
+
+
+ </dependencies>
+ <executions>
+ <execution>
+ <id>test</id>
+ <!-- Can be used in test phase instead -->
+ <phase>integration-test</phase>
+ <configuration>
+ <tasks>
+
+ <!--Get access to maven classpath-->
+ <property name="compile_classpath"
refid="maven.compile.classpath"/>
+ <property name="runtime_classpath"
refid="maven.runtime.classpath"/>
+ <property name="test_classpath"
refid="maven.test.classpath"/>
+ <property name="plugin_classpath"
refid="maven.plugin.classpath"/>
+
+ <property name="project.version"
value="${project.version}"/>
+
+ <!--This way you can get access to direct path of jars in
maven classpath-->
+ <property name="dependency.jboss-unit.jar"
value="${maven.dependency.org.jboss.unit.jboss-unit.jar.path}"/>
+ <echo message="Direct path to JBoss Unit jar:
${dependency.jboss-unit.jar}"/>
+
+ <!-- You can redirect ant call to separate build.xml file
-->
+ <!--<ant
antfile="${basedir}/src/test/build.xml">-->
+ <!--<target name="tests"/>-->
+ <!--</ant>-->
+
+ <taskdef name="jboss-unit"
classname="org.jboss.unit.tooling.ant.JBossUnitTask"
classpath="${plugin_classpath}"/>
+
+ <!--Use of JBoss Unit ant plugin-->
+ <jboss-unit>
+
+ <tests config="jboss-unit.xml">
+
+ </tests>
+
+ <reports>
+ <xml
toDir="target/tests/reports/xml/local"/>
+ <html
toDir="target/tests/reports/html/local"/>
+ </reports>
+
+ <classpath>
+ <pathelement location="target/classes"/>
+ <pathelement
location="target/test-classes"/>
+ <pathelement path="${test_classpath}"/>
+ </classpath>
+
+ </jboss-unit >
+
+ </tasks>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+
+ </plugins>
+
+ </build>
+
+</project>
\ No newline at end of file
Added:
modules/template/module-c/src/main/java/org/jboss/portal/templatemodule/c/SampleModuleCClass.java
===================================================================
---
modules/template/module-c/src/main/java/org/jboss/portal/templatemodule/c/SampleModuleCClass.java
(rev 0)
+++
modules/template/module-c/src/main/java/org/jboss/portal/templatemodule/c/SampleModuleCClass.java 2008-01-06
15:42:26 UTC (rev 9440)
@@ -0,0 +1,31 @@
+/*
+* JBoss, a division of Red Hat
+* Copyright 2006, Red Hat Middleware, LLC, and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+*/
+
+package org.jboss.portal.templatemodule.c;
+
+/**
+ * @author <a href="mailto:boleslaw dot dawidowicz at redhat anotherdot
com">Boleslaw Dawidowicz</a>
+ * @version : 0.1 $
+ */
+public class SampleModuleCClass
+{
+}
Added:
modules/template/module-c/src/test/java/org/jboss/portal/templatemodule/c/SampleModuleCTest.java
===================================================================
---
modules/template/module-c/src/test/java/org/jboss/portal/templatemodule/c/SampleModuleCTest.java
(rev 0)
+++
modules/template/module-c/src/test/java/org/jboss/portal/templatemodule/c/SampleModuleCTest.java 2008-01-06
15:42:26 UTC (rev 9440)
@@ -0,0 +1,38 @@
+/*
+* JBoss, a division of Red Hat
+* Copyright 2006, Red Hat Middleware, LLC, and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+*/
+
+package org.jboss.portal.templatemodule.c;
+
+import org.jboss.unit.api.pojo.annotations.Test;
+
+/**
+ * @author <a href="mailto:boleslaw dot dawidowicz at redhat anotherdot
com">Boleslaw Dawidowicz</a>
+ * @version : 0.1 $
+ */
+public class SampleModuleCTest
+{
+ @Test
+ public void testSimple() throws Exception
+ {
+ System.out.println("######## Running simple test with JBoss Unit");
+ }
+}
Added: modules/template/module-c/src/test/resources/jboss-unit.xml
===================================================================
--- modules/template/module-c/src/test/resources/jboss-unit.xml
(rev 0)
+++ modules/template/module-c/src/test/resources/jboss-unit.xml 2008-01-06 15:42:26 UTC
(rev 9440)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jboss-unit
+ xmlns="urn:jboss:jboss-unit:1.0"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="urn:jboss:jboss-unit:1.0 jboss-unit_1_0.xsd">
+ <pojo>
+ <test>
+ <class
name="org.jboss.portal.templatemodule.c.SampleModuleCTest"/>
+ </test>
+ </pojo>
+</jboss-unit>
\ No newline at end of file
Copied: modules/template/pom.xml (from rev 9433, modules/identity/trunk/pom.xml)
===================================================================
--- modules/template/pom.xml (rev 0)
+++ modules/template/pom.xml 2008-01-06 15:42:26 UTC (rev 9440)
@@ -0,0 +1,37 @@
+<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.jboss.portal.templatemodule</groupId>
+ <artifactId>jboss-portal-modules-templatemodule-aggregator</artifactId>
+ <packaging>pom</packaging>
+ <name>JBoss Portal Template Module (aggregator)</name>
+ <version>1.0-SNAPSHOT</version>
+ <
url>http://labs.jboss.com/jbossportal</url>
+
+ <dependencies/>
+
+ <!--Repository definition needed to deploy artifacts into JBoss maven
repositories-->
+ <distributionManagement>
+ <repository>
+ <!--Copy the distribution jar file to a local checkout of the maven
repository
+ - This variable can be set in $MAVEN_HOME/conf/settings.xml-->
+ <id>repository.jboss.org</id>
+ <url>file://${jboss.repository.root}</url>
+ </repository>
+ <snapshotRepository>
+ <id>snapshots.jboss.org</id>
+ <name>JBoss Snapshot Repository</name>
+ <
url>dav:https://snapshots.jboss.org/maven2</url>
+ <uniqueVersion>true</uniqueVersion>
+ </snapshotRepository>
+ </distributionManagement>
+
+ <modules>
+ <module>build</module>
+ <module>module-a</module>
+ <module>module-b</module>
+ <module>module-c</module>
+ </modules>
+
+
+</project>
\ No newline at end of file