Seam SVN: r15100 - branches/community/Seam_2_3/distribution/src/main/assembly.
by seam-commits@lists.jboss.org
Author: manaRH
Date: 2012-09-02 06:12:21 -0400 (Sun, 02 Sep 2012)
New Revision: 15100
Modified:
branches/community/Seam_2_3/distribution/src/main/assembly/src.xml
Log:
filtered release-process.txt from src zip
Modified: branches/community/Seam_2_3/distribution/src/main/assembly/src.xml
===================================================================
--- branches/community/Seam_2_3/distribution/src/main/assembly/src.xml 2012-09-02 10:12:10 UTC (rev 15099)
+++ branches/community/Seam_2_3/distribution/src/main/assembly/src.xml 2012-09-02 10:12:21 UTC (rev 15100)
@@ -26,6 +26,7 @@
<exclude>**/.classpath</exclude>
<exclude>**/*.iml</exclude>
<exclude>.gitignore</exclude>
+ <exclude>release-process.txt</exclude>
</excludes>
</fileSet>
12 years, 3 months
Seam SVN: r15099 - in branches/community/Seam_2_3: examples-ee6 and 1 other directory.
by seam-commits@lists.jboss.org
Author: manaRH
Date: 2012-09-02 06:12:10 -0400 (Sun, 02 Sep 2012)
New Revision: 15099
Removed:
branches/community/Seam_2_3/examples-ee6/update_process.txt
Modified:
branches/community/Seam_2_3/distribution/src/main/assembly/seam23migration.txt
Log:
updated migration text
Modified: branches/community/Seam_2_3/distribution/src/main/assembly/seam23migration.txt
===================================================================
--- branches/community/Seam_2_3/distribution/src/main/assembly/seam23migration.txt 2012-09-01 17:20:42 UTC (rev 15098)
+++ branches/community/Seam_2_3/distribution/src/main/assembly/seam23migration.txt 2012-09-02 10:12:10 UTC (rev 15099)
@@ -4,8 +4,8 @@
of. This process should not be too painful - if you get stuck, just refer back
to the updated Seam examples.
-This migration guide assumes you are using Seam 2.0, if you are migrating from
-Seam 1.2, see the seam2migration guide as well.
+This migration guide assumes you are using Seam 2.2, if you are migrating from
+Seam 1.2 or 2.0, see the seam2migration.txt and seam21migration.txt guide as well.
Testing
@@ -13,39 +13,135 @@
SeamTest and JBoss Embedded is legacy components and have many limitations and we doesn't support it now.
We now bring Arquillian as a replacement of JBoss Embedded and integration testing
-is provided by org.jboss.seam.mock.JUnitSeamTest. More in reference documentation guide.
+is provided by org.jboss.seam.mock.JUnitSeamTest, dbunit testing is provided by org.jboss.seam.mock.DBJUnitSeamTest.
+More due some issues with TestNG in Arquillian, we use JUnit as prefered test framework. Migration to Junit and
+Arquillian goes in the following steps:
+1. Add @RunWith(Arquillian.class) annotation to your test class.
+2. Your test class should extend JUnitSeamTest instead of SeamTest.
+3. Add a helper class for instance like
+examples/booking/booking-tests/src/test/java/org/jboss/seam/example/booking/test/Deployments.java
+4. Add a method like public static org.jboss.shrinkwrap.api.Archive<?> createDeployment(){} for creating deployment
+archive for Arquillian environment with annotations
+@Deployment(name="<your_test_name>") and @OverProtocol("Servlet 3.0")
+5. Add arquillian.xml file into root of your classpath for running test(s). The file content should specify path to
+remote or managed container and some specific options for JVM or Arquillian. Example of arquillian file is at
+examples/booking/booking-tests/src/test/resources-integration/arquillian.xml.
+More details in Seam reference documentation guide in chapter 37. Testing Seam applications.
Schemas
----------------
+
XML schemas for validation Files that use the Seam 2.2 XSDs should be updated to refer to
the 2.3 XSDs. Current Schemas URL is www.jboss.org/schema/seam/<schema>-2.3.xsd.
-Bean Validation
+Bean Validation instead of Hibernate Validator
------------------
+
You need to migrate from org.hibernate.validator.* validator annotations to java.validation.constraint.* equivalent
for instance:
org.hibernate.validator.Length to java.validation.constraint.Size,
org.hibernate.validator.NotNull to java.validation.constraint.NotNull,
org.hibernate.validator.Pattern to java.validation.constraint.Pattern.
+JSF 1 to JSF 2 Facelets
+------------------
+Configuration file faces-config.xml is not required to be in your application, if you anyway would like to have it,
+change version to 2.1.
+
+All your application JSF templates should use only facelets technology.
+
+Here it is required to convert <head>/<body> tags to <h:head><h:body>
+
+
+Java EE 6 upgrade
+-----------------
+
+Seam 2.3 can integrate with the major upgrades in Java EE (from 5 to 6). You can use persistence with JPA 2, EJB 3.1 and
+Bean Validation.
+
+Using JPA 2 requires to change version to 2.0 in your persistence.xml file. Version in application.xml should be 6.
+Migration of web.xml file is in changing version to 3.0.
+
+Examples of changed headers with versions are the following.
+
+persistence.xml:
+<persistence xmlns="http://java.sun.com/xml/ns/persistence"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
+ version="2.0">
+
+application.xml:
+<application xmlns="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_6.xsd"
+ version="6">
+
+web.xml:
+<web-app xmlns="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
+ version="3.0">
+
+Further JNDI string creation changed due Java EE 6 JNDI portable syntax, and you have to change all JNDI strings from
+<your_application>/#{ejbName}/local to java:app/<application-module-name>/#{ejbName} like
+ for instance in WEB-INF/components.xml change jndiPattern from: seam-mail/#{ejbName}/local to java:app/seam-mail-ejb/#{ejbName}
+
+JBoss AS 7.1 deployment
+--------------------------
+
+If you using for development or testing default datasource in JBoss AS 7.1, change jndi string in your persistence.xml
+from java:/DefaultDS to java:jboss/datasources/ExampleDS.
+
+JBoss AS 7 has got refactored classloading and specific classloading of bundled or provided libraries can be managed in
+jboss-deployment-structure.xml, which should be placed in META-INF directory of your application. Minimal content for
+Seam 2.3 based application is:
+<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.0">
+ <deployment>
+ <dependencies>
+ <module name="org.dom4j" export="true"/>
+ <module name="org.apache.commons.collections" export="true"/>
+ <module name="javax.faces.api" export="true"/> <!-- keep there only if you use JSF as view technology -->
+ </dependencies>
+ </deployment>
+</jboss-deployment-structure>
+More details are described in JBoss AS 7 documentation.
+
+
+
Dependency changes (Maven)
--------------------------
The "provided" platform is now JBoss AS 7.1.x, therefore all Java EE dependencies included
-in AS 7 are now marked as provided.
+in AS 7 are now marked as provided. Seam uses JBoss Java EE BOM files through Seam BOM file for declaring dependencies.
+You should add import of org.jboss.seam:bom only and then just use the dependency groupId:artifactId[:scope] wherever in
+your maven project.
-Seam UI tags
---------------------------
-We use Richfaces CDK for generation of Seam UI taglib, unfortunately Richfaces CDK 4 doesn't support to create custom tags for converter or validator:
-Affected seam tags are:
- convertEntity
- convertEnum
- convertAtomicBoolean
- convertAtomicInteger
- convertAtomicLong
- validateFormattedText
-There can be used standard JSF 2 tags like f:converter or f:validator for the simulating the old behaviour of s:convert* or s:validate* tags.
-
+<dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>bom</artifactId>
+ <version>2.3.0.CR1</version>
+ <type>pom</type>
+ <scope>import</scope>
+ </dependency>
+ ...
+ </dependencies>
+</dependencyManagement>
+
+<dependencies>
+
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-seam</artifactId>
+ <type>ejb</type>
+ <dependency>
+
+ ...
+</dependencies>
+
+
+
Deleted: branches/community/Seam_2_3/examples-ee6/update_process.txt
===================================================================
--- branches/community/Seam_2_3/examples-ee6/update_process.txt 2012-09-01 17:20:42 UTC (rev 15098)
+++ branches/community/Seam_2_3/examples-ee6/update_process.txt 2012-09-02 10:12:10 UTC (rev 15099)
@@ -1,222 +0,0 @@
-In each test class
-==================
-Add @RunWith(Arquillian.class) annotation to the class
-import org.jboss.arquillian.junit.Arquillian;
-extends JUnitSeamTest
-Change all @Test annotation from TestNG to JUnit
-
-Add the method:
- @Deployment(name="<project>Test")
- @OverProtocol("Servlet 3.0")
- public static Archive<?> createDeployment()
- {
- EnterpriseArchive er = Deployments.<project>Deployment();
- WebArchive web = er.getAsType(WebArchive.class, "<project>-web.war");
-
- web.addClasses(<testName>.class);
-
- return er;
- }
-
-
-In source folder of *-tests
-===========================
-Create a Deployments class with the content:
-import org.jboss.shrinkwrap.api.ShrinkWrap;
-import org.jboss.shrinkwrap.api.importer.ZipImporter;
-import org.jboss.shrinkwrap.api.spec.EnterpriseArchive;
-
-import java.io.File;
-
-public class Deployments {
- public static EnterpriseArchive <project>Deployment() {
- return ShrinkWrap.create(ZipImporter.class, "seam-<project>.ear").importFrom(new File("../<project>-ear/target/seam-<project>.ear"))
- .as(EnterpriseArchive.class);
- }
-}
-
-
-Arquillian.xml
-==============
-Add arquillian.xml in folder resource-integration. Contents of arquillian.xml:
-
-<?xml version="1.0" encoding="UTF-8"?>
-<arquillian xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns="http://jboss.org/schema/arquillian"
- xsi:schemaLocation="http://jboss.org/schema/arquillian http://jboss.org/schema/arquillian/arquillian_1_0.xsd">
-
- <engine>
- <property name="deploymentExportPath">target/</property>
- </engine>
-
- <container qualifier="jboss" default="true">
- <configuration>
- <property name="javaVmArguments">-Xmx1024m -XX:MaxPermSize=512m</property>
- <property name="jbossHome">target/jboss-as-${version.jbossas7}</property>
- </configuration>
- </container>
-</arquillian>
-
-
-
-
-In *-tests.pom
-===============
-add hibernate-validator
-<example.context.path>seam-<module-name></example.context.path>
-
-
-plugins should be:
- <build>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>selenium-maven-plugin</artifactId>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>failsafe-maven-plugin</artifactId>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-antrun-plugin</artifactId>
- </plugin>
- </plugins>
- </build>
-
-
-
-
-In faces-config.xml
-===================
-
-Remove:
- <!-- Facelets support -->
- <application>
- <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
- </application>
-
-Upgrade version to 2.1
-
-In jboss-deployment-structure.xml
-=================================
-Remove exclusion
-Remove slot attributes
-Include <module name="org.antlr" export="true"/>
-
-In web.xml
-==========
-Migrate version from 2.5 to 3.0
-
-In all xhtml pages
-===================
-Convert
- <head><body>and<html> tags to <h:head><h:body>and<h:html>
- with <(/?)head> <$1h:head>
- with <(/?)body> <$1h:body>
- with <(/?)html> <$1h:html>
-
-
-
-in persistence.xml
-change from <non-jta-data-source>java:/DefaultDS</non-jta-data-source> to <non-jta-data-source>java:jboss/datasources/ExampleDS</non-jta-data-source>
-
-in *-web.pom
-============
-
- <jndiPattern>([^/]*)?/\#\{ejbName\}/local</jndiPattern>
- replace with <jndiPattern>java:app/$1/#{ejbName}</jndiPattern>
- go from: seam-mail/#{ejbName}/local
- <jndiPattern>java:app/seam-mail-ejb/#{ejbName}</jndiPattern>
-
- remove:
- <exclusions>
- <exclusion>
- <groupId>com.thoughtworks.xstream</groupId>
- <artifactId>xstream</artifactId>
- </exclusion>
- <exclusion>
- <groupId>xpp3</groupId>
- <artifactId>xpp3_min</artifactId>
- </exclusion>
- </exclusions>
-
-add:
- <dependency>
- <groupId>org.hibernate.javax.persistence</groupId>
- <artifactId>hibernate-jpa-2.0-api</artifactId>
- <scope>provided</scope>
- </dependency>
-
-add the rest as:
-
- <dependency>
- <groupId>commons-logging</groupId>
- <artifactId>commons-logging</artifactId>
- </dependency>
- <dependency>
- <groupId>org.jboss.el</groupId>
- <artifactId>jboss-el</artifactId>
- </dependency>
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>hibernate-validator</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.richfaces.ui</groupId>
- <artifactId>richfaces-components-ui</artifactId>
- </dependency>
- <dependency>
- <groupId>org.richfaces.core</groupId>
- <artifactId>richfaces-core-impl</artifactId>
- </dependency>
- <dependency>
- <groupId>org.richfaces.core</groupId>
- <artifactId>richfaces-core-api</artifactId>
- </dependency>
- <dependency>
- <groupId>org.jboss.spec.javax.faces</groupId>
- <artifactId>jboss-jsf-api_2.0_spec</artifactId>
- <scope>provided</scope>
- </dependency>
-
- Get rid of <activation> on <id>jbossas51</id>
-
- remove maven dependency plugin
- <!--<plugin>-->
- <!--<groupId>org.apache.maven.plugins</groupId>-->
- <!--<artifactId>maven-dependency-plugin</artifactId>-->
- <!--<executions>-->
- <!--<execution>-->
- <!--<id>unpack</id>-->
- <!--<phase>package</phase>-->
- <!--<goals>-->
- <!--<goal>unpack</goal>-->
- <!--</goals>-->
- <!--<configuration>-->
- <!--<artifactItems>-->
- <!--<artifactItem>-->
- <!--<groupId>org.jboss.seam.examples</groupId>-->
- <!--<artifactId>groovybooking-web</artifactId>-->
- <!--<type>war</type>-->
- <!--<overWrite>true</overWrite>-->
- <!--<outputDirectory>${project.build.directory}/${project.build.finalName}-exploded/${project.build.finalName}.war</outputDirectory>-->
- <!--</artifactItem>-->
- <!--</artifactItems>-->
- <!--</configuration>-->
- <!--</execution>-->
- <!--</executions>-->
- <!--</plugin>-->
-
-In *-ejb.pom
-===========
-All hibernate dependencies will need to be listed as 'provided'
-
-
-In src/main/resources/persistence.xml
-==================
-Change <jta-data-source>java:/icefaces-bookingDatasource</jta-data-source> to
-<non-jta-data-source>java:jboss/datasources/ExampleDS</non-jta-data-source>
-Run tests with:
-mvn -Darquillian=jbossas-managed-7 clean test integration-test
12 years, 3 months
Seam SVN: r15098 - branches/community/Seam_2_3/distribution/src/main/assembly.
by seam-commits@lists.jboss.org
Author: manaRH
Date: 2012-09-01 13:20:42 -0400 (Sat, 01 Sep 2012)
New Revision: 15098
Modified:
branches/community/Seam_2_3/distribution/src/main/assembly/dist.xml
branches/community/Seam_2_3/distribution/src/main/assembly/src.xml
Log:
filtered hidden IDE related files
Modified: branches/community/Seam_2_3/distribution/src/main/assembly/dist.xml
===================================================================
--- branches/community/Seam_2_3/distribution/src/main/assembly/dist.xml 2012-09-01 05:17:06 UTC (rev 15097)
+++ branches/community/Seam_2_3/distribution/src/main/assembly/dist.xml 2012-09-01 17:20:42 UTC (rev 15098)
@@ -15,13 +15,16 @@
<fileSets>
<!-- Examples only -->
<fileSet>
- <directory>target/dependency</directory>
- <outputDirectory>.</outputDirectory>
- <includes>
- <include>examples-ee6/</include>
- </includes>
+ <directory>../examples-ee6</directory>
+ <outputDirectory>./examples</outputDirectory>
+ <useDefaultExcludes>true</useDefaultExcludes>
<excludes>
- <exclude>examples/wiki/</exclude>
+ <exclude>**/*.log</exclude>
+ <exclude>**/${project.build.directory}/**</exclude>
+ <exclude>**/jar-dependencies/**</exclude>
+ <exclude>**/.settings/**</exclude>
+ <exclude>**/.project</exclude>
+ <exclude>**/.classpath</exclude>
</excludes>
</fileSet>
Modified: branches/community/Seam_2_3/distribution/src/main/assembly/src.xml
===================================================================
--- branches/community/Seam_2_3/distribution/src/main/assembly/src.xml 2012-09-01 05:17:06 UTC (rev 15097)
+++ branches/community/Seam_2_3/distribution/src/main/assembly/src.xml 2012-09-01 17:20:42 UTC (rev 15098)
@@ -20,9 +20,15 @@
<exclude>**/*.log</exclude>
<exclude>**/${project.build.directory}/**</exclude>
<exclude>**/jar-dependencies/**</exclude>
+ <exclude>**/.settings/**</exclude>
+ <exclude>**/.idea/**</exclude>
+ <exclude>**/.project</exclude>
+ <exclude>**/.classpath</exclude>
+ <exclude>**/*.iml</exclude>
+ <exclude>.gitignore</exclude>
</excludes>
</fileSet>
</fileSets>
-</assembly>
\ No newline at end of file
+</assembly>
12 years, 3 months
Seam SVN: r15097 - in branches/community/Seam_2_3/examples-ee6/seamspace: seamspace-ear and 4 other directories.
by seam-commits@lists.jboss.org
Author: dhinojosa
Date: 2012-09-01 01:17:06 -0400 (Sat, 01 Sep 2012)
New Revision: 15097
Added:
branches/community/Seam_2_3/examples-ee6/seamspace/build.xml
branches/community/Seam_2_3/examples-ee6/seamspace/seamspace-ear/build.xml
branches/community/Seam_2_3/examples-ee6/seamspace/seamspace-ear/src/main/resources/application-for-ant-only.xml
branches/community/Seam_2_3/examples-ee6/seamspace/seamspace-ejb/build.xml
branches/community/Seam_2_3/examples-ee6/seamspace/seamspace-tests/build.xml
branches/community/Seam_2_3/examples-ee6/seamspace/seamspace-web/build.xml
Log:
Installed ant for seamspace; although arquillian test does not run. Seems that there are two jboss-seam.jar in the classpath making for extreme sadness.
Copied: branches/community/Seam_2_3/examples-ee6/seamspace/build.xml (from rev 15094, branches/community/Seam_2_3/examples-ee6/booking/build.xml)
===================================================================
--- branches/community/Seam_2_3/examples-ee6/seamspace/build.xml (rev 0)
+++ branches/community/Seam_2_3/examples-ee6/seamspace/build.xml 2012-09-01 05:17:06 UTC (rev 15097)
@@ -0,0 +1,22 @@
+<?xml version="1.0"?>
+<project name="seamspace" basedir="." >
+
+ <property name="seamspace.ear.dir" value="${basedir}/seamspace-ear"/>
+ <property name="seamspace.ejb.dir" value="${basedir}/seamspace-ejb"/>
+ <property name="seamspace.web.dir" value="${basedir}/seamspace-web"/>
+ <property name="seamspace.tests.dir" value="${basedir}/seamspace-tests"/>
+
+ <target name="clean" description="Cleans up the target directory in every module">
+ <ant antfile="${seamspace.ear.dir}/build.xml" target="clean" inheritAll="false"/>
+ <ant antfile="${seamspace.ejb.dir}/build.xml" target="clean" inheritAll="false"/>
+ <ant antfile="${seamspace.web.dir}/build.xml" target="clean" inheritAll="false"/>
+ <ant antfile="${seamspace.tests.dir}/build.xml" target="clean" inheritAll="false"/>
+ </target>
+
+ <target name="package" description="Cleans up the target directory in every module">
+ <ant antfile="${seamspace.ear.dir}/build.xml" target="package" inheritAll="false"/>
+ <ant antfile="${seamspace.ejb.dir}/build.xml" target="package" inheritAll="false"/>
+ <ant antfile="${seamspace.web.dir}/build.xml" target="package" inheritAll="false"/>
+ </target>
+
+</project>
Copied: branches/community/Seam_2_3/examples-ee6/seamspace/seamspace-ear/build.xml (from rev 15094, branches/community/Seam_2_3/examples-ee6/booking/booking-ear/build.xml)
===================================================================
--- branches/community/Seam_2_3/examples-ee6/seamspace/seamspace-ear/build.xml (rev 0)
+++ branches/community/Seam_2_3/examples-ee6/seamspace/seamspace-ear/build.xml 2012-09-01 05:17:06 UTC (rev 15097)
@@ -0,0 +1,152 @@
+<?xml version="1.0"?>
+<project name="seamspace-ear" basedir="."
+ xmlns:artifact="antlib:org.apache.maven.artifact.ant">
+
+ <!-- set global properties for this build -->
+ <property environment="env"/>
+ <property name="project.name" value="seamspace-ear"/>
+
+ <property name="root.dir" value="../../.."/>
+ <property name="project.parent.dir" value=".."/>
+
+ <property name="target.dir" value="target"/>
+ <property name="target.classes.dir" value="${target.dir}/classes"/>
+ <property name="target.test-classes.dir" value="${target.dir}/test-classes"/>
+ <property name="target.seamspace.ear.dir" value="${target.dir}/seamspace-ear"/>
+
+ <property name="src.main.resources.dir" value="${basedir}/src/main/resources"/>
+ <property name="src.main.application.dir" value="${basedir}/src/main/application"/>
+
+ <property name="seamspace.ejb.dir" value="${project.parent.dir}/seamspace-ejb"/>
+ <property name="seamspace.web.dir" value="${project.parent.dir}/seamspace-web"/>
+
+
+ <path id="build.lib.classpath">
+ <fileset dir="${root.dir}/build/lib">
+ <include name="**/*.jar"/>
+ </fileset>
+ </path>
+
+ <typedef resource="org/apache/maven/artifact/ant/antlib.xml"
+ uri="antlib:org.apache.maven.artifact.ant"
+ classpathref="build.lib.classpath"/>
+
+ <artifact:dependencies pathId="build.classpath">
+ <dependency groupId="org.codehaus.groovy" artifactId="groovy" version="2.0.1"/>
+ <dependency groupId="org.codehaus.groovy" artifactId="groovy-ant" version="2.0.1"/>
+ <dependency groupId="commons-cli" artifactId="commons-cli" version="1.2"/>
+ <dependency groupId="junit" artifactId="junit" version="4.10" scope="test"/>
+ </artifact:dependencies>
+
+
+ <artifact:dependencies pathId="project.classpath" filesetId="project.fileset">
+ <dependency groupId="org.jboss.seam" artifactId="jboss-seam" version="2.3.0.CR1-SNAPSHOT" scope="compile">
+ <exclusion groupId="org.testng" artifactId="testng"/>
+ <exclusion groupId="junit" artifactId="junit"/>
+ <exclusion groupId="org.jboss.spec.javax.faces" artifactId="jboss-jsf-api_2.0_spec"/>
+ <exclusion groupId="javax.el" artifactId="el-api"/>
+ <exclusion groupId="org.jboss.el" artifactId="jboss-el"/>
+ </dependency>
+ <dependency groupId="commons-digester" artifactId="commons-digester" version="2.1"/>
+ <dependency groupId="org.drools" artifactId="drools-core" version="5.1.1">
+ <exclusion groupId="joda-time" artifactId="joda-time"/>
+ </dependency>
+ <dependency groupId="org.drools" artifactId="drools-compiler" version="5.1.1"/>
+ <dependency groupId="org.drools" artifactId="drools-decisiontables" version="5.1.1"/>
+ <dependency groupId="org.drools" artifactId="drools-templates" version="5.1.1"/>
+ <dependency groupId="net.sourceforge.jexcelapi" artifactId="jxl" version="2.6.10">
+ <exclusion groupId="log4j" artifactId="log4j"/>
+ </dependency>
+ </artifact:dependencies>
+
+ <artifact:dependencies pathId="lib.classpath" filesetId="lib.fileset">
+ <dependency groupId="org.hibernate" artifactId="hibernate-entitymanager" version="4.1.0.Final"
+ scope="provided"/>
+ <dependency groupId="org.hibernate" artifactId="hibernate-validator" version="4.2.0.Final" scope="provided"/>
+ <dependency groupId="org.hibernate.javax.persistence" artifactId="hibernate-jpa-2.0-api" version="1.0.1.Final"
+ scope="provided"/>
+ <dependency groupId="org.jboss.seam" artifactId="jboss-seam" version="2.3.0.CR1-SNAPSHOT" scope="compile">
+ <exclusion groupId="org.testng" artifactId="testng"/>
+ <exclusion groupId="junit" artifactId="junit"/>
+ <exclusion groupId="org.jboss.spec.javax.faces" artifactId="jboss-jsf-api_2.0_spec"/>
+ <exclusion groupId="javax.el" artifactId="el-api"/>
+ </dependency>
+ <dependency groupId="org.jboss.spec.javax.ejb" artifactId="jboss-ejb-api_3.1_spec" version="1.0.1.Final"
+ scope="provided"/>
+ <dependency groupId="org.jboss.spec.javax.faces" artifactId="jboss-jsf-api_2.0_spec" version="1.0.0.Final"
+ scope="provided"/>
+ <dependency groupId="org.jboss.spec.javax.servlet" artifactId="jboss-servlet-api_3.0_spec" version="1.0.0.Final"
+ scope="provided"/>
+ <dependency groupId="org.drools" artifactId="drools-core" version="5.1.1">
+ <exclusion groupId="joda-time" artifactId="joda-time"/>
+ </dependency>
+ <dependency groupId="org.drools" artifactId="drools-compiler" version="5.1.1"/>
+ <dependency groupId="org.drools" artifactId="drools-decisiontables" version="5.1.1"/>
+ <dependency groupId="org.drools" artifactId="drools-templates" version="5.1.1"/>
+ <dependency groupId="org.drools" artifactId="knowledge-api" version="5.3.3.Final" />
+ <dependency groupId="net.sourceforge.jexcelapi" artifactId="jxl" version="2.6.10">
+ <exclusion groupId="log4j" artifactId="log4j"/>
+ </dependency>
+ </artifact:dependencies>
+
+ <target name="clean" description="Cleans up the target directory">
+ <delete dir="${target.dir}"/>
+ </target>
+
+ <target name="init">
+ <tstamp/>
+ <mkdir dir="${target.dir}"/>
+ <condition property="seamspace.jar.exists">
+ <and>
+ <available file="${seamspace.ejb.dir}/target" type="dir"/>
+ <available file="${seamspace.ejb.dir}/target/seamspace-ejb.jar"/>
+ </and>
+ </condition>
+ <condition property="seamspace.web.exists">
+ <and>
+ <available file="${seamspace.web.dir}/target" type="dir"/>
+ <available file="${seamspace.web.dir}/target/seamspace-web.war"/>
+ </and>
+ </condition>
+ <echo message="${seamspace.jar.exists}"/>
+ <echo message="${seamspace.war.exists}"/>
+
+ </target>
+
+ <target name="build-seamspace-ejb" depends="init" unless="seamspace.jar.exists">
+ <ant antfile="${seamspace.ejb.dir}/build.xml" target="package" inheritAll="false"/>
+ </target>
+
+ <target name="build-seamspace-web" depends="build-seamspace-ejb" unless="seamspace.web.exists">
+ <ant antfile="${seamspace.web.dir}/build.xml" target="package" inheritAll="false"/>
+ </target>
+
+ <target name="package" depends="build-seamspace-web" description="Compile the Java source code">
+ <copy todir="${target.seamspace.ear.dir}">
+ <fileset refid="project.fileset"/>
+ <!-- This mapper strips off all leading directory information -->
+ <chainedmapper>
+ <mapper type="flatten"/>
+ <mapper type="glob" from="jboss-seam*.jar" to="jboss-seam.jar"/>
+ </chainedmapper>
+ </copy>
+
+ <copy todir="${target.seamspace.ear.dir}/lib">
+ <fileset refid="lib.fileset"/>
+ <mapper type="flatten"/>
+ </copy>
+
+ <ear destfile="${target.dir}/seam-seamspace.ear"
+ appxml="${src.main.resources.dir}/application-for-ant-only.xml">
+ <metainf dir="${src.main.application.dir}/META-INF">
+ <include name="*.xml"/>
+ </metainf>
+
+ <fileset file="${seamspace.ejb.dir}/target/seamspace-ejb.jar"/>
+ <fileset file="${seamspace.web.dir}/target/seamspace-web.war"/>
+ <fileset dir="${target.seamspace.ear.dir}">
+ <include name="**/*"/>
+ </fileset>
+ </ear>
+ </target>
+</project>
\ No newline at end of file
Copied: branches/community/Seam_2_3/examples-ee6/seamspace/seamspace-ear/src/main/resources/application-for-ant-only.xml (from rev 15091, branches/community/Seam_2_3/examples-ee6/booking/booking-ear/src/main/resources/application-for-ant-only.xml)
===================================================================
--- branches/community/Seam_2_3/examples-ee6/seamspace/seamspace-ear/src/main/resources/application-for-ant-only.xml (rev 0)
+++ branches/community/Seam_2_3/examples-ee6/seamspace/seamspace-ear/src/main/resources/application-for-ant-only.xml 2012-09-01 05:17:06 UTC (rev 15097)
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<application xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_6.xsd" version="6">
+ <description>Examples for Seam 2 Framework in Java EE6 environment</description>
+ <display-name>seamspace-ear</display-name>
+ <module>
+ <web>
+ <web-uri>seamspace-web.war</web-uri>
+ <context-root>/seam-seamspace</context-root>
+ </web>
+ </module>
+ <module>
+ <ejb>seamspace-ejb.jar</ejb>
+ </module>
+ <module>
+ <ejb>jboss-seam.jar</ejb>
+ </module>
+ <library-directory>lib</library-directory>
+</application>
Copied: branches/community/Seam_2_3/examples-ee6/seamspace/seamspace-ejb/build.xml (from rev 15094, branches/community/Seam_2_3/examples-ee6/booking/booking-ejb/build.xml)
===================================================================
--- branches/community/Seam_2_3/examples-ee6/seamspace/seamspace-ejb/build.xml (rev 0)
+++ branches/community/Seam_2_3/examples-ee6/seamspace/seamspace-ejb/build.xml 2012-09-01 05:17:06 UTC (rev 15097)
@@ -0,0 +1,142 @@
+<?xml version="1.0"?>
+<project name="seamspace-ejb" basedir="."
+ xmlns:artifact="antlib:org.apache.maven.artifact.ant">
+ <!-- set global properties for this build -->
+ <property environment="env"/>
+ <property name="project.name" value="seamspace-ejb"/>
+ <property name="root.dir" value="../../.."/>
+
+ <property name="target.dir" value="target"/>
+ <property name="target.classes.dir" value="${target.dir}/classes"/>
+ <property name="target.test-classes.dir" value="${target.dir}/test-classes"/>
+
+ <property name="src.main.java.dir" value="${basedir}/src/main/java"/>
+ <property name="src.test.java.dir" value="${basedir}/src/test/java"/>
+ <property name="src.main.groovy.dir" value="${basedir}/src/main/groovy"/>
+ <property name="src.test.groovy.dir" value="${basedir}/src/test/groovy"/>
+ <property name="src.main.resources.dir" value="${basedir}/src/main/resources"/>
+
+ <property name="javac.debug" value="true"/>
+ <property name="javac.deprecation" value="false"/>
+ <property name="debug" value="false"/>
+ <property name="groovy.home" value="${env.GROOVY_HOME}"/>
+
+ <path id="build.lib.classpath">
+ <fileset dir="${root.dir}/build/lib">
+ <include name="**/*.jar"/>
+ </fileset>
+ </path>
+
+ <typedef resource="org/apache/maven/artifact/ant/antlib.xml"
+ uri="antlib:org.apache.maven.artifact.ant"
+ classpathref="build.lib.classpath"/>
+
+ <artifact:dependencies pathId="build.classpath">
+ <dependency groupId="org.codehaus.groovy" artifactId="groovy" version="2.0.1"/>
+ <dependency groupId="org.codehaus.groovy" artifactId="groovy-ant" version="2.0.1"/>
+ <dependency groupId="commons-cli" artifactId="commons-cli" version="1.2"/>
+ <dependency groupId="junit" artifactId="junit" version="4.10" scope="test"/>
+ </artifact:dependencies>
+
+
+ <artifact:dependencies pathId="project.classpath">
+ <dependency groupId="org.hibernate" artifactId="hibernate-entitymanager" version="4.1.0.Final"
+ scope="provided"/>
+ <dependency groupId="org.hibernate" artifactId="hibernate-validator" version="4.2.0.Final" scope="provided"/>
+ <dependency groupId="org.hibernate.javax.persistence" artifactId="hibernate-jpa-2.0-api" version="1.0.1.Final"
+ scope="provided"/>
+ <dependency groupId="org.jboss.seam" artifactId="jboss-seam" version="2.3.0.CR1-SNAPSHOT" scope="compile">
+ <exclusion groupId="org.testng" artifactId="testng"/>
+ <exclusion groupId="junit" artifactId="junit"/>
+ <exclusion groupId="org.jboss.spec.javax.faces" artifactId="jboss-jsf-api_2.0_spec"/>
+ <exclusion groupId="javax.el" artifactId="el-api"/>
+ </dependency>
+ <dependency groupId="org.jboss.spec.javax.ejb" artifactId="jboss-ejb-api_3.1_spec" version="1.0.1.Final"
+ scope="provided"/>
+ <dependency groupId="org.jboss.spec.javax.faces" artifactId="jboss-jsf-api_2.0_spec" version="1.0.0.Final"
+ scope="provided"/>
+ <dependency groupId="org.jboss.spec.javax.servlet" artifactId="jboss-servlet-api_3.0_spec" version="1.0.0.Final"
+ scope="provided"/>
+ <dependency groupId="org.drools" artifactId="drools-core" version="5.1.1">
+ <exclusion groupId="joda-time" artifactId="joda-time"/>
+ </dependency>
+ <dependency groupId="org.drools" artifactId="drools-compiler" version="5.1.1"/>
+ <dependency groupId="org.drools" artifactId="drools-decisiontables" version="5.1.1"/>
+ <dependency groupId="org.drools" artifactId="drools-templates" version="5.1.1"/>
+ <dependency groupId="net.sourceforge.jexcelapi" artifactId="jxl" version="2.6.10">
+ <exclusion groupId="log4j" artifactId="log4j"/>
+ </dependency>
+ </artifact:dependencies>
+
+ <taskdef name="groovyc"
+ classname="org.codehaus.groovy.ant.Groovyc"
+ classpathref="build.classpath"/>
+
+ <target name="clean" description="Cleans up the target directory">
+ <delete dir="${target.dir}"/>
+ </target>
+
+ <target name="init">
+ <tstamp/>
+ <mkdir dir="${target.dir}"/>
+ <mkdir dir="${src.main.java.dir}"/>
+ <condition property="src.test.java.dir.exists">
+ <available file="${src.test.java.dir}" type="dir"/>
+ </condition>
+ </target>
+
+ <target name="compile" depends="init"
+ description="Compile the Java source code">
+ <mkdir dir="${target.classes.dir}"/>
+ <javac source="1.6" target="1.6" debug="${javac.debug}"
+ deprecation="${javac.deprecation}"
+ nowarn="on"
+ includeantruntime="false"
+ destdir="${target.classes.dir}">
+ <src path="${src.main.java.dir}"/>
+ <classpath refid="project.classpath"/>
+ <compilerarg value="-Xlint"/>
+ </javac>
+ </target>
+
+ <target name="compile-test" depends="compile"
+ if="${src.test.java.dir.exists}">
+ <mkdir dir="${target.test-classes.dir}"/>
+ <javac source="1.6" target="1.6" debug="${javac.debug}"
+ deprecation="${javac.deprecation}"
+ destdir="${target.test-classes.dir}"
+ nowarn="on"
+ includeantruntime="false">
+ <compilerarg value="-Xlint"/>
+ <src path="${src.test.java.dir}"/>
+ <classpath refid="project.classpath"/>
+ </javac>
+ </target>
+
+ <target name="test" depends="compile-test"
+ if="${src.test.java.dir.exists}">
+ <mkdir dir="${target.test.classes.dir}"/>
+ <junit printsummary="yes" haltonfailure="yes">
+ <formatter type="xml"/>
+ <classpath refid="project.classpath"/>
+ <batchtest fork="yes" todir="${test.results.dir}">
+ <fileset dir="${target.test.classes.dir}"/>
+ </batchtest>
+ </junit>
+ </target>
+
+ <target name="package" depends="test"
+ description="Compile the Java source code">
+ <jar destfile="${target.dir}/seamspace-ejb.jar"
+ basedir="${target.classes.dir}">
+ <metainf dir="${src.main.resources.dir}/META-INF">
+ <include name="ejb-jar.xml"/>
+ <include name="persistence.xml"/>
+ </metainf>
+ <fileset dir="${src.main.resources.dir}">
+ <include name="import.sql"/>
+ <include name="seam.properties"/>
+ </fileset>
+ </jar>
+ </target>
+</project>
\ No newline at end of file
Copied: branches/community/Seam_2_3/examples-ee6/seamspace/seamspace-tests/build.xml (from rev 15095, branches/community/Seam_2_3/examples-ee6/booking/booking-tests/build.xml)
===================================================================
--- branches/community/Seam_2_3/examples-ee6/seamspace/seamspace-tests/build.xml (rev 0)
+++ branches/community/Seam_2_3/examples-ee6/seamspace/seamspace-tests/build.xml 2012-09-01 05:17:06 UTC (rev 15097)
@@ -0,0 +1,198 @@
+<?xml version="1.0"?>
+<project name="seamspace-test" basedir="." xmlns:artifact="antlib:org.apache.maven.artifact.ant">
+
+ <!-- set global properties for this build -->
+ <property environment="env"/>
+ <property name="project.name" value="seamspace-ejb"/>
+ <property name="root.dir" value="../../.."/>
+
+ <property name="target.dir" value="target"/>
+ <property name="target.classes.dir" value="${target.dir}/classes"/>
+ <property name="target.test.classes.dir" value="${target.dir}/test-classes"/>
+ <property name="target.test.results.dir" value="${target.dir}/test-results"/>
+ <property name="target.test.reports.dir" value="${target.dir}/test-reports"/>
+
+ <property name="src.main.java.dir" value="${basedir}/src/main/java"/>
+ <property name="src.test.java.dir" value="${basedir}/src/test/java"/>
+ <property name="src.test.resources.dir" value="${basedir}/src/test/resources"/>
+ <property name="src.test.resources-integration.dir" value="${basedir}/src/test/resources-integration"/>
+ <property name="src.main.groovy.dir" value="${basedir}/src/main/groovy"/>
+ <property name="src.test.groovy.dir" value="${basedir}/src/test/groovy"/>
+ <property name="src.main.resources.dir" value="${basedir}/src/main/resources"/>
+ <property name="seamspace.ear.dir" value="../seamspace-ear"/>
+ <property name="seamspace.ejb.dir" value="../seamspace-ejb"/>
+ <property name="seamspace.web.dir" value="../seamspace-web"/>
+ <property name="javac.debug" value="true"/>
+ <property name="javac.deprecation" value="false"/>
+ <property name="debug" value="false"/>
+ <property name="version.jbossas7" value="7.1.1.Final"/>
+
+ <path id="build.lib.classpath">
+ <fileset dir="${root.dir}/build/lib">
+ <include name="**/*.jar"/>
+ </fileset>
+ </path>
+
+ <typedef resource="org/apache/maven/artifact/ant/antlib.xml"
+ uri="antlib:org.apache.maven.artifact.ant"
+ classpathref="build.lib.classpath"/>
+
+ <artifact:dependencies pathId="build.classpath">
+ <dependency groupId="org.codehaus.groovy" artifactId="groovy" version="2.0.1"/>
+ <dependency groupId="org.codehaus.groovy" artifactId="groovy-ant" version="2.0.1"/>
+ <dependency groupId="commons-cli" artifactId="commons-cli" version="1.2"/>
+ <dependency groupId="junit" artifactId="junit" version="4.10" scope="test"/>
+
+ </artifact:dependencies>
+
+ <artifact:dependencies pathId="project.classpath" filesetId="project.fileset">
+ <dependency groupId="org.jboss.seam" artifactId="jboss-seam" scope="test" version="2.3.0.CR1-SNAPSHOT"/>
+ <dependency groupId="org.slf4j" artifactId="slf4j-log4j12" scope="test" version="1.6.1"/>
+ <dependency groupId="org.hibernate.javax.persistence" scope="test" artifactId="hibernate-jpa-2.0-api" version="1.0.1.Final"/>
+ <dependency groupId="org.jboss.spec.javax.faces" scope="test" artifactId="jboss-jsf-api_2.0_spec" version="1.0.0.Final"/>
+ <dependency groupId="javax.mail" artifactId="mail" version="1.4"/>
+ <dependency groupId="org.seleniumhq.selenium" artifactId="selenium-server" version="2.21.0"/>
+ <dependency groupId="org.seleniumhq.selenium" artifactId="selenium-java" version="2.21.0"/>
+ <dependency groupId="org.jboss.seam" artifactId="functional-tests" scope="test" version="2.3.0.CR1-SNAPSHOT"/>
+ <dependency groupId="junit" artifactId="junit" scope="test" version="4.8.2"/>
+ <dependency groupId="org.jboss.arquillian.junit" artifactId="arquillian-junit-container" scope="test"
+ version="1.0.1.Final"/>
+ <dependency groupId="org.jboss.arquillian.protocol" artifactId="arquillian-protocol-servlet" scope="test"
+ version="1.0.1.Final"/>
+ <dependency groupId="org.jboss.spec.javax.el" artifactId="jboss-el-api_2.2_spec" version="1.0.2.Final"/>
+ <dependency groupId="org.jboss.as" artifactId="jboss-as-arquillian-container-managed" version="7.1.2.Final" scope="test"/>
+ </artifact:dependencies>
+
+ <artifact:dependencies pathId="jbossas.classpath" filesetId="jbossas.fileset" >
+ <dependency groupId="org.jboss.as" artifactId="jboss-as-dist" version="7.1.1.Final" type="zip"/>
+ </artifact:dependencies>
+
+ <path id="combined.project.classpath">
+ <path refid="project.classpath"/>
+ <pathelement location="${seamspace.ejb.dir}/target/seamspace-ejb.jar"/>
+ </path>
+
+ <path id="combined.test.project.classpath">
+ <path refid="combined.project.classpath"/>
+ <pathelement location="${target.test.classes.dir}"/>
+ </path>
+
+ <taskdef name="groovyc"
+ classname="org.codehaus.groovy.ant.Groovyc"
+ classpathref="build.classpath"/>
+
+ <target name="clean" description="Cleans up the target directory">
+ <delete dir="${target.dir}"/>
+ </target>
+
+ <target name="init">
+ <tstamp/>
+ <mkdir dir="${target.dir}"/>
+ <condition property="src.test.java.dir.exists">
+ <available file="${src.test.java.dir}" type="dir"/>
+ </condition>
+ <condition property="seamspace.ejb.target.classes.dir.exists">
+ <available file="${seamspace.ejb.dir}/target/classes" type="dir"/>
+ </condition>
+ <condition property="seamspace.ear.exists">
+ <available file="${seamspace.ear.dir}/target/seam-seamspace.ear" type="dir"/>
+ </condition>
+ <condition property="src.main.java.exists">
+ <available file="${src.main.java.dir}" type="dir"/>
+ </condition>
+ </target>
+
+ <target name="build-seamspace-ejb" depends="init" unless="seamspace.ejb.target.classes.dir.exists">
+ <ant antfile="${seamspace.ejb.dir}/build.xml" target="compile" inheritAll="false"/>
+ </target>
+
+ <target name="build-seamspace-ear" depends="build-seamspace-ejb" unless="seamspace.ear.exists">
+ <ant antfile="${seamspace.ear.dir}/build.xml" target="package" inheritAll="false"/>
+ </target>
+
+ <target name="compile" depends="build-seamspace-ear" if="${src.main.java.exists}"
+ description="Compile the Java source code">
+ <mkdir dir="${target.classes.dir}"/>
+ <javac source="1.6" target="1.6" debug="${javac.debug}"
+ deprecation="${javac.deprecation}"
+ nowarn="on"
+ includeantruntime="false">
+ <src path="${src.main.java.dir}"/>
+ <classpath refid="combined.project.classpath"/>
+ <compilerarg value="-Xlint"/>
+ </javac>
+ </target>
+
+ <target name="compile-test" depends="compile"
+ if="${src.test.java.dir.exists}">
+ <mkdir dir="${target.test.classes.dir}"/>
+
+ <javac source="1.6" target="1.6" debug="${javac.debug}"
+ deprecation="${javac.deprecation}"
+ destdir="${target.test.classes.dir}"
+ nowarn="on"
+ includeantruntime="false">
+ <compilerarg value="-Xlint"/>
+ <src path="${src.test.java.dir}"/>
+ <classpath refid="combined.test.project.classpath"/>
+ </javac>
+ </target>
+
+ <target name="process-test-resources" depends="compile-test">
+ <mkdir dir="${src.test.resources-integration.dir}"/>
+ <copy todir="${target.test.classes.dir}">
+ <!--<fileset dir="${src.test.resources.dir}">-->
+ <!--<include name="**/*"/>-->
+ <!--</fileset>-->
+ <fileset dir="${src.test.resources-integration.dir}">
+ <include name="*"/>
+ </fileset>
+ <!--<fileset dir="${seamspace.web.dir}/src/main/resources">-->
+ <!--<include name="*"/>-->
+ <!--</fileset>-->
+ <filterset begintoken="${" endtoken="}">
+ <filter token="version.jbossas7" value="${version.jbossas7}"/>
+ </filterset>
+ </copy>
+ </target>
+
+ <target name="process-jbossas" depends="process-test-resources">
+ <copy todir="${target.dir}">
+ <fileset refid="jbossas.fileset" />
+ <mapper type="flatten"/>
+ </copy>
+ <unzip dest="${target.dir}">
+ <fileset dir="${target.dir}">
+ <include name="**/*.zip"/>
+ <exclude name="**/tmp*.zip"/>
+ </fileset>
+ </unzip>
+ </target>
+
+ <target name="test" depends="process-jbossas"
+ if="${src.test.java.dir.exists}">
+ <mkdir dir="${target.test.classes.dir}"/>
+ <mkdir dir="${target.test.results.dir}"/>
+ <mkdir dir="${target.test.reports.dir}"/>
+ <property name="myclasspath" refid="combined.test.project.classpath"/>
+ <echo message="${myclasspath}"/>
+ <junit printsummary="yes" haltonfailure="no">
+ <formatter type="xml"/>
+ <classpath refid="combined.test.project.classpath"/>
+ <batchtest fork="yes" todir="${target.test.results.dir}">
+ <fileset dir="${target.test.classes.dir}">
+ <exclude name="**/Deployments.class"/>
+ <exclude name="**/selenium/*"/>
+ <include name="**/*Test.class"/>
+ </fileset>
+ </batchtest>
+ </junit>
+ <junitreport todir="${target.test.reports.dir}">
+ <fileset dir="${target.test.results.dir}">
+ <include name="TEST-*.xml"/>
+ </fileset>
+ <report todir="${target.test.reports.dir}"/>
+ </junitreport>
+ </target>
+
+</project>
Copied: branches/community/Seam_2_3/examples-ee6/seamspace/seamspace-web/build.xml (from rev 15094, branches/community/Seam_2_3/examples-ee6/booking/booking-web/build.xml)
===================================================================
--- branches/community/Seam_2_3/examples-ee6/seamspace/seamspace-web/build.xml (rev 0)
+++ branches/community/Seam_2_3/examples-ee6/seamspace/seamspace-web/build.xml 2012-09-01 05:17:06 UTC (rev 15097)
@@ -0,0 +1,145 @@
+<?xml version="1.0"?>
+<project name="seamspace-web" basedir="." xmlns:artifact="antlib:org.apache.maven.artifact.ant">
+ <!-- set global properties for this build -->
+ <property environment="env"/>
+ <property name="project.name" value="seamspace-ejb"/>
+ <property name="root.dir" value="../../.."/>
+
+ <property name="target.dir" value="target"/>
+ <property name="target.classes.dir" value="${target.dir}/classes"/>
+ <property name="target.web.dir" value="${target.dir}/webapp"/>
+
+ <property name="src.main.java.dir" value="${basedir}/src/main/java"/>
+ <property name="src.test.java.dir" value="${basedir}/src/test/java"/>
+ <property name="src.main.groovy.dir" value="${basedir}/src/main/groovy"/>
+ <property name="src.test.groovy.dir" value="${basedir}/src/test/groovy"/>
+ <property name="src.main.webapp.dir" value="${basedir}/src/main/webapp"/>
+ <property name="src.main.resources.dir" value="${basedir}/src/main/resources"/>
+
+ <property name="javac.debug" value="true"/>
+ <property name="javac.deprecation" value="false"/>
+ <property name="debug" value="false"/>
+ <property name="groovy.home" value="${env.GROOVY_HOME}"/>
+
+ <property name="jndiPattern" value="java:app/seamspace-ejb/#{ejbName}"/>
+ <property name="distributable" value="false"/>
+
+ <path id="build.lib.classpath">
+ <fileset dir="${root.dir}/build/lib">
+ <include name="**/*.jar"/>
+ </fileset>
+ </path>
+
+ <typedef resource="org/apache/maven/artifact/ant/antlib.xml"
+ uri="antlib:org.apache.maven.artifact.ant"
+ classpathref="build.lib.classpath"/>
+
+ <artifact:dependencies pathId="build.classpath">
+ <dependency groupId="org.codehaus.groovy" artifactId="groovy" version="2.0.1"/>
+ <dependency groupId="org.codehaus.groovy" artifactId="groovy-ant" version="2.0.1"/>
+ <dependency groupId="commons-cli" artifactId="commons-cli" version="1.2"/>
+ <dependency groupId="junit" artifactId="junit" version="4.10" scope="test"/>
+ </artifact:dependencies>
+
+ <artifact:dependencies pathId="project.classpath" filesetId="project.fileset" useScope="runtime">
+ <dependency groupId="org.jboss.seam" artifactId="jboss-seam-ui" version="2.3.0.CR1-SNAPSHOT" scope="runtime">
+ <exclusion groupId="org.jboss.seam" artifactId="jboss-seam-jul"/>
+ <exclusion groupId="org.jboss.seam" artifactId="jboss-seam"/>
+ </dependency>
+ <dependency groupId="org.jboss.seam" artifactId="jboss-seam-debug" version="2.3.0.CR1-SNAPSHOT"
+ scope="compile">
+ <exclusion groupId="org.jboss.seam" artifactId="jboss-seam"/>
+ </dependency>
+ <dependency groupId="commons-beanutils" artifactId="commons-beanutils" version="1.8.3" scope="compile">
+ <exclusion groupId="commons-collections" artifactId="commons-collections"/>
+ </dependency>
+ <dependency groupId="commons-logging" artifactId="commons-logging" version="1.1.1" scope="compile"/>
+ <dependency groupId="org.richfaces.ui" artifactId="richfaces-components-ui" version="4.3.0.20120802-M1"
+ scope="compile"/>
+ <dependency groupId="org.richfaces.core" artifactId="richfaces-core-impl" version="4.3.0.20120802-M1"
+ scope="compile"/>
+ <dependency groupId="org.richfaces.core" artifactId="richfaces-core-api" version="4.3.0.20120802-M1"
+ scope="compile"/>
+ </artifact:dependencies>
+
+ <taskdef name="groovyc"
+ classname="org.codehaus.groovy.ant.Groovyc"
+ classpathref="build.classpath"/>
+
+ <target name="clean" description="Cleans up the target directory">
+ <delete dir="${target.dir}"/>
+ </target>
+
+ <target name="init">
+ <tstamp/>
+ <mkdir dir="${target.dir}"/>
+ <mkdir dir="${src.main.java.dir}"/>
+ <condition property="src.test.java.dir.exists">
+ <available file="${src.test.java.dir}" type="dir"/>
+ </condition>
+ </target>
+
+ <target name="compile" depends="init"
+ description="Compile the Java source code">
+ <mkdir dir="${target.classes.dir}"/>
+ <javac source="1.6" target="1.6" debug="${javac.debug}"
+ deprecation="${javac.deprecation}"
+ nowarn="on"
+ includeantruntime="false">
+ <src path="${src.main.java.dir}"/>
+ <classpath refid="project.classpath"/>
+ <compilerarg value="-Xlint"/>
+ </javac>
+ </target>
+
+ <target name="compile-test" depends="compile"
+ if="${src.test.java.dir.exists}">
+ <mkdir dir="${target.test-classes.dir}"/>
+ <javac source="1.6" target="1.6" debug="${javac.debug}"
+ deprecation="${javac.deprecation}"
+ destdir="${target.test-classes.dir}"
+ nowarn="on"
+ includeantruntime="false">
+ <compilerarg value="-Xlint"/>
+ <src path="${src.test.java.dir}"/>
+ <classpath refid="project.classpath"/>
+ </javac>
+ </target>
+
+ <target name="test" depends="compile-test"
+ if="${src.test.java.dir.exists}">
+ <junit printsummary="yes" haltonfailure="yes">
+ <formatter type="xml"/>
+ <classpath refid="project.classpath"/>
+ <batchtest fork="yes" todir="${test.results.dir}">
+ <fileset dir="${target.test.classes.dir}"/>
+ </batchtest>
+ </junit>
+ </target>
+
+ <target name="package" depends="compile"
+ description="Compile the Java source code">
+ <mkdir dir="${target.web.dir}"/>
+ <copy todir="${target.web.dir}">
+ <fileset dir="${src.main.webapp.dir}"/>
+ <filterset begintoken="${" endtoken="}">
+ <filter token="jndiPattern" value="${jndiPattern}"/>
+ <filter token="distributable" value="${distributable}"/>
+ </filterset>
+ </copy>
+
+ <copy todir="${target.web.dir}/WEB-INF/lib">
+ <fileset refid="project.fileset"/>
+ <!-- This mapper strips off all leading directory information -->
+ <mapper type="flatten"/>
+ </copy>
+
+ <war destfile="${target.dir}/seamspace-web.war"
+ webxml="${target.web.dir}/WEB-INF/web.xml">
+ <fileset dir="${target.web.dir}">
+ <exclude name="/WEB-INF/web.xml"/>
+ </fileset>
+ <classes dir="${target.classes.dir}"/>
+ </war>
+ </target>
+</project>
12 years, 3 months