[seam-commits] Seam SVN: r15094 - in branches/community/Seam_2_3/examples-ee6/booking: booking-ear and 3 other directories.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Wed Aug 29 13:55:55 EDT 2012


Author: dhinojosa
Date: 2012-08-29 13:55:55 -0400 (Wed, 29 Aug 2012)
New Revision: 15094

Added:
   branches/community/Seam_2_3/examples-ee6/booking/build.xml
Modified:
   branches/community/Seam_2_3/examples-ee6/booking/booking-ear/build.xml
   branches/community/Seam_2_3/examples-ee6/booking/booking-ejb/build.xml
   branches/community/Seam_2_3/examples-ee6/booking/booking-tests/build.xml
   branches/community/Seam_2_3/examples-ee6/booking/booking-web/build.xml
Log:
Finished with ant for booking

Modified: branches/community/Seam_2_3/examples-ee6/booking/booking-ear/build.xml
===================================================================
--- branches/community/Seam_2_3/examples-ee6/booking/booking-ear/build.xml	2012-08-29 11:21:47 UTC (rev 15093)
+++ branches/community/Seam_2_3/examples-ee6/booking/booking-ear/build.xml	2012-08-29 17:55:55 UTC (rev 15094)
@@ -2,12 +2,6 @@
 <project name="booking-ejb" basedir="."
          xmlns:artifact="antlib:org.apache.maven.artifact.ant">
 
-   <!-- Give user a chance to override without editing this file or typing -D -->
-   <property file="${basedir}/../build.properties"/>
-
-   <property name="profile" value="dev"/>
-   <property file="${basedir}/../build-${profile}.properties"/>
-
    <!-- set global properties for this build -->
    <property environment="env"/>
    <property name="project.name" value="booking-ear"/>
@@ -18,7 +12,7 @@
    <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.ear.dir" value="${target.dir}/ear"/>
+   <property name="target.booking.ear.dir" value="${target.dir}/booking-ear"/>
 
    <property name="src.main.resources.dir" value="${basedir}/src/main/resources"/>
    <property name="src.main.application.dir" value="${basedir}/src/main/application"/>
@@ -55,6 +49,11 @@
       </dependency>
    </artifact:dependencies>
 
+   <artifact:dependencies pathId="lib.classpath" filesetId="lib.fileset">
+      <dependency groupId="org.jboss.el" artifactId="jboss-el" version="1.0_02.CR6">
+         <exclusion groupId="javax.el" artifactId="el-api"/>
+      </dependency>
+   </artifact:dependencies>
 
    <target name="clean" description="Cleans up the target directory">
       <delete dir="${target.dir}"/>
@@ -89,7 +88,7 @@
    </target>
 
    <target name="package" depends="build-booking-web" description="Compile the Java source code">
-      <copy todir="${target.ear.dir}">
+      <copy todir="${target.booking.ear.dir}">
          <fileset refid="project.fileset"/>
          <!-- This mapper strips off all leading directory information -->
          <chainedmapper>
@@ -98,15 +97,21 @@
          </chainedmapper>
       </copy>
 
-      <ear destfile="${target.dir}/booking.ear"
+      <copy todir="${target.booking.ear.dir}/lib">
+         <fileset refid="lib.fileset"/>
+         <mapper type="flatten"/>
+      </copy>
+
+      <ear destfile="${target.dir}/seam-booking.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="${booking.ejb.dir}/target/booking-ejb.jar"/>
          <fileset file="${booking.web.dir}/target/booking-web.war"/>
-         <fileset dir="${target.ear.dir}">
-            <include name="*.jar"/>
+         <fileset dir="${target.booking.ear.dir}">
+            <include name="**/*"/>
          </fileset>
       </ear>
    </target>

Modified: branches/community/Seam_2_3/examples-ee6/booking/booking-ejb/build.xml
===================================================================
--- branches/community/Seam_2_3/examples-ee6/booking/booking-ejb/build.xml	2012-08-29 11:21:47 UTC (rev 15093)
+++ branches/community/Seam_2_3/examples-ee6/booking/booking-ejb/build.xml	2012-08-29 17:55:55 UTC (rev 15094)
@@ -1,13 +1,6 @@
 <?xml version="1.0"?>
 <project name="booking-ejb" basedir="."
          xmlns:artifact="antlib:org.apache.maven.artifact.ant">
-
-    <!-- Give user a chance to override without editing this file or typing -D -->
-    <property file="${basedir}/../build.properties"/>
-
-    <property name="profile" value="dev"/>
-    <property file="${basedir}/../build-${profile}.properties"/>
-
     <!-- set global properties for this build -->
     <property environment="env"/>
     <property name="project.name" value="booking-ejb"/>

Modified: branches/community/Seam_2_3/examples-ee6/booking/booking-tests/build.xml
===================================================================
--- branches/community/Seam_2_3/examples-ee6/booking/booking-tests/build.xml	2012-08-29 11:21:47 UTC (rev 15093)
+++ branches/community/Seam_2_3/examples-ee6/booking/booking-tests/build.xml	2012-08-29 17:55:55 UTC (rev 15094)
@@ -1,12 +1,6 @@
 <?xml version="1.0"?>
 <project name="booking-test" basedir="." xmlns:artifact="antlib:org.apache.maven.artifact.ant">
 
-   <!-- Give user a chance to override without editing this file or typing -D -->
-   <property file="${basedir}/../build.properties"/>
-
-   <property name="profile" value="dev"/>
-   <property file="${basedir}/../build-${profile}.properties"/>
-
    <!-- set global properties for this build -->
    <property environment="env"/>
    <property name="project.name" value="booking-ejb"/>
@@ -16,6 +10,7 @@
    <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"/>
@@ -23,12 +18,11 @@
    <property name="src.test.groovy.dir" value="${basedir}/src/test/groovy"/>
    <property name="src.main.resources.dir" value="${basedir}/src/main/resources"/>
    <property name="booking.ear.dir" value="../booking-ear"/>
-
+   <property name="booking.ejb.dir" value="../booking-ejb"/>
    <property name="javac.debug" value="true"/>
-   S
    <property name="javac.deprecation" value="false"/>
    <property name="debug" value="false"/>
-   <property name="groovy.home" value="${env.GROOVY_HOME}"/>
+   <property name="version.jbossas7" value="${7.1.1.Final}"/>
 
    <path id="build.lib.classpath">
       <fileset dir="${root.dir}/build/lib">
@@ -47,7 +41,6 @@
       <dependency groupId="junit" artifactId="junit" version="4.10" scope="test"/>
    </artifact:dependencies>
 
-
    <artifact:dependencies pathId="project.classpath">
       <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"/>
@@ -62,13 +55,13 @@
                   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.0.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>
 
    <path id="combined.project.classpath">
       <path refid="project.classpath"/>
-      <pathelement location="resources-integration/arquillian.xml"/>
-      <pathelement location="${booking-ejb.dir}/target/classes"/>
+      <pathelement location="${booking.ejb.dir}/target/classes"/>
    </path>
 
    <path id="combined.test.project.classpath">
@@ -87,22 +80,29 @@
    <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>
-      <condition property="booking-ejb.target.class.dir.exists">
-         <available file="${booking-ejb.dir}/target/classes" type="dir"/>
+      <condition property="booking.ejb.target.classes.dir.exists">
+         <available file="${booking.ejb.dir}/target/classes" type="dir"/>
       </condition>
-      <echo message="${src.test.java.dir.exists}"/>
-      <echo message="${booking-ejb.target.class.dir.exists}"/>
+      <condition property="booking.ear.exists">
+         <available file="${booking.ear.dir}/target/seam-booking.ear" type="dir"/>
+      </condition>
+      <condition property="src.main.java.exists">
+         <available file="${src.main.java.dir}" type="dir"/>
+      </condition>
    </target>
 
-   <target name="build-booking-ear" depends="init" unless="booking.ear.target.class.dir.exists">
+   <target name="build-booking-ejb" depends="init" unless="booking.ejb.target.classes.dir.exists">
+      <ant antfile="${booking.ejb.dir}/build.xml" target="compile" inheritAll="false"/>
+   </target>
+
+   <target name="build-booking-ear" depends="build-booking-ejb" unless="booking.ear.exists">
       <ant antfile="${booking.ear.dir}/build.xml" target="package" inheritAll="false"/>
    </target>
 
-   <target name="compile" depends="build-booking-ejb"
+   <target name="compile" depends="build-booking-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}"
@@ -119,7 +119,7 @@
            if="${src.test.java.dir.exists}">
       <mkdir dir="${target.test.classes.dir}"/>
       <property name="myclasspath" refid="combined.project.classpath"/>
-
+      <echo message="${myclasspath}"/>
       <javac source="1.6" target="1.6" debug="${javac.debug}"
              deprecation="${javac.deprecation}"
              destdir="${target.test.classes.dir}"
@@ -131,17 +131,43 @@
       </javac>
    </target>
 
+   <target name="process-test-resources" depends="compile-test">
+      <copy todir="${target.test.classes.dir}">
+         <fileset dir="${src.test.resources}">
+            <include name="*"/>
+         </fileset>
+         <fileset dir="${src.test.resources-integration}">
+            <include name="*"/>
+         </fileset>
+         <fileset dir="${booking.web.dir}/src/main/resources">
+            <include name="*"/>
+         </fileset>
+         <filterset begintoken="${" endtoken="}">
+            <filter token="version.jbossas7" value="${version.jbossas7}"/>
+         </filterset>
+      </copy>
+   </target>
+
    <target name="test" depends="compile-test"
            if="${src.test.java.dir.exists}">
       <mkdir dir="${target.test.classes.dir}"/>
       <mkdir dir="${target.test.results.dir}"/>
+      <mkdir dir="${target.test.reports.dir}"/>
       <junit printsummary="yes" haltonfailure="yes">
          <formatter type="xml"/>
          <classpath refid="combined.test.project.classpath"/>
          <batchtest fork="yes" todir="${target.test.results.dir}">
-            <fileset dir="${target.test.classes.dir}"/>
+            <fileset dir="${target.test.classes.dir}">
+                <exclude name="**/Deployments.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>

Modified: branches/community/Seam_2_3/examples-ee6/booking/booking-web/build.xml
===================================================================
--- branches/community/Seam_2_3/examples-ee6/booking/booking-web/build.xml	2012-08-29 11:21:47 UTC (rev 15093)
+++ branches/community/Seam_2_3/examples-ee6/booking/booking-web/build.xml	2012-08-29 17:55:55 UTC (rev 15094)
@@ -1,144 +1,145 @@
 <?xml version="1.0"?>
 <project name="booking-ejb" basedir="." xmlns:artifact="antlib:org.apache.maven.artifact.ant">
+   <!-- set global properties for this build -->
+   <property environment="env"/>
+   <property name="project.name" value="booking-ejb"/>
+   <property name="root.dir" value="../../.."/>
 
-    <!-- Give user a chance to override without editing this file or typing -D -->
-    <property file="${basedir}/../build.properties"/>
+   <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="profile" value="dev"/>
-    <property file="${basedir}/../build-${profile}.properties"/>
+   <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"/>
 
-    <!-- set global properties for this build -->
-    <property environment="env"/>
-    <property name="project.name" value="booking-ejb"/>
-    <property name="root.dir" value="../../.."/>
+   <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="target.dir" value="target"/>
-    <property name="target.classes.dir" value="${target.dir}/classes"/>
-    <property name="target.web.dir" value="${target.dir}/webapp"/>
+   <property name="jndiPattern" value="java:app/booking-ejb/#{ejbName}"/>
+   <property name="distributable" value="false"/>
 
-    <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"/>
+   <path id="build.lib.classpath">
+      <fileset dir="${root.dir}/build/lib">
+         <include name="**/*.jar"/>
+      </fileset>
+   </path>
 
-    <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}"/>
+   <typedef resource="org/apache/maven/artifact/ant/antlib.xml"
+            uri="antlib:org.apache.maven.artifact.ant"
+            classpathref="build.lib.classpath"/>
 
-    <path id="build.lib.classpath">
-        <fileset dir="${root.dir}/build/lib">
-            <include name="**/*.jar"/>
-        </fileset>
-    </path>
+   <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>
 
-    <typedef resource="org/apache/maven/artifact/ant/antlib.xml"
-             uri="antlib:org.apache.maven.artifact.ant"
-             classpathref="build.lib.classpath"/>
+   <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>
 
-    <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>
+   <taskdef name="groovyc"
+            classname="org.codehaus.groovy.ant.Groovyc"
+            classpathref="build.classpath"/>
 
-    <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>
+   <target name="clean" description="Cleans up the target directory">
+      <delete dir="${target.dir}"/>
+   </target>
 
-    <taskdef name="groovyc"
-             classname="org.codehaus.groovy.ant.Groovyc"
-             classpathref="build.classpath"/>
+   <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="clean" description="Cleans up the target directory">
-        <delete dir="${target.dir}"/>
-    </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="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-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="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="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="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="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>
 
-    <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>
+      <copy todir="${target.web.dir}/WEB-INF/lib">
+         <fileset refid="project.fileset"/>
+         <!-- This mapper strips off all leading directory information -->
+         <mapper type="flatten"/>
+      </copy>
 
-    <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}"/>
-        </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}/booking-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>
+      <war destfile="${target.dir}/booking-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>

Copied: branches/community/Seam_2_3/examples-ee6/booking/build.xml (from rev 15092, branches/community/Seam_2_3/examples-ee6/booking/booking-tests/build.xml)
===================================================================
--- branches/community/Seam_2_3/examples-ee6/booking/build.xml	                        (rev 0)
+++ branches/community/Seam_2_3/examples-ee6/booking/build.xml	2012-08-29 17:55:55 UTC (rev 15094)
@@ -0,0 +1,22 @@
+<?xml version="1.0"?>
+<project name="booking" basedir="." >
+
+   <property name="booking.ear.dir" value="${basedir}/booking-ear"/>
+   <property name="booking.ejb.dir" value="${basedir}/booking-ejb"/>
+   <property name="booking.web.dir" value="${basedir}/booking-web"/>
+   <property name="booking.tests.dir" value="${basedir}/booking-tests"/>
+
+   <target name="clean" description="Cleans up the target directory in every module">
+      <ant antfile="${booking.ear.dir}/build.xml" target="clean" inheritAll="false"/>
+      <ant antfile="${booking.ejb.dir}/build.xml" target="clean" inheritAll="false"/>
+      <ant antfile="${booking.web.dir}/build.xml" target="clean" inheritAll="false"/>
+      <ant antfile="${booking.tests.dir}/build.xml" target="clean" inheritAll="false"/>
+   </target>
+
+   <target name="package" description="Cleans up the target directory in every module">
+      <ant antfile="${booking.ear.dir}/build.xml" target="package" inheritAll="false"/>
+      <ant antfile="${booking.ejb.dir}/build.xml" target="package" inheritAll="false"/>
+      <ant antfile="${booking.web.dir}/build.xml" target="package" inheritAll="false"/>
+   </target>
+
+</project>



More information about the seam-commits mailing list