Author: dhinojosa
Date: 2012-08-28 00:59:39 -0400 (Tue, 28 Aug 2012)
New Revision: 15090
Added:
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
Removed:
branches/community/Seam_2_3/examples-ee6/booking/ant-dependency/
branches/community/Seam_2_3/examples-ee6/booking/ant-with-maven.xml
branches/community/Seam_2_3/examples-ee6/booking/ant-without-maven.xml
Log:
Added p
Deleted: branches/community/Seam_2_3/examples-ee6/booking/ant-with-maven.xml
===================================================================
--- branches/community/Seam_2_3/examples-ee6/booking/ant-with-maven.xml 2012-08-27
10:36:26 UTC (rev 15089)
+++ branches/community/Seam_2_3/examples-ee6/booking/ant-with-maven.xml 2012-08-28
04:59:39 UTC (rev 15090)
@@ -1,65 +0,0 @@
-<project xmlns:artifact="antlib:org.apache.maven.artifact.ant">
-
- <path id="maven-ant-tasks.classpath"
path="ant-dependency/maven-ant-tasks-2.1.3.jar"/>
- <typedef resource="org/apache/maven/artifact/ant/antlib.xml"
- uri="antlib:org.apache.maven.artifact.ant"
- classpathref="maven-ant-tasks.classpath"/>
-
- <target name="clean">
- <artifact:mvn>
- <arg value="clean"/>
- </artifact:mvn>
- </target>
-
- <target name="init">
- <artifact:mvn>
- <arg value="initialize"/>
- </artifact:mvn>
- </target>
-
- <target name="compile">
- <artifact:mvn>
- <arg value="compile"/>
- </artifact:mvn>
- </target>
-
- <target name="compiletest">
- <artifact:mvn>
- <arg value="test-compile"/>
- </artifact:mvn>
- </target>
-
- <target name="war">
- <artifact:mvn pom="booking-ejb/pom.xml">
- <arg value="install"/>
- <arg value="-DskipTests=true"/>
- </artifact:mvn>
- <artifact:mvn pom="booking-web/pom.xml">
- <arg value="-DskipTests=true"/>
- <arg value="install"/>
- </artifact:mvn>
- </target>
-
- <target name="ear">
- <artifact:mvn pom="booking-ear/pom.xml">
- <arg value="install"/>
- <arg value="-DskipTests=true"/>
- </artifact:mvn>
- </target>
-
- <target name="test">
- <artifact:mvn>
- <arg value="test"/>
- </artifact:mvn>
- </target>
-
- <target name="javadoc">
- <artifact:mvn>
- <arg value="install"/>
- <arg value="-DskipTests=true"/>
- </artifact:mvn>
- <artifact:mvn>
- <arg value="javadoc:javadoc"/>
- </artifact:mvn>
- </target>
-</project>
\ No newline at end of file
Deleted: branches/community/Seam_2_3/examples-ee6/booking/ant-without-maven.xml
===================================================================
Added: branches/community/Seam_2_3/examples-ee6/booking/booking-ear/build.xml
===================================================================
--- branches/community/Seam_2_3/examples-ee6/booking/booking-ear/build.xml
(rev 0)
+++ branches/community/Seam_2_3/examples-ee6/booking/booking-ear/build.xml 2012-08-28
04:59:39 UTC (rev 15090)
@@ -0,0 +1,155 @@
+<?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-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.ear.dir"
value="${target.dir}/ear"/>
+
+ <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="src.main.application.dir"
value="${basedir}/src/main/application"/>
+
+ <property name="booking.ejb.dir"
value="${project.parent.dir}/booking-ejb"/>
+ <property name="booking.web.dir"
value="${project.parent.dir}/booking-web"/>
+
+ <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"
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>
+ </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="build-booking-ejb" depends="init"
unless="booking-ejb.target.class.dir.exists">
+ <ant antfile="${booking-ejb.dir}/build.xml"
target="compile" inheritAll="false"/>
+ </target>
+
+ <target name="build-booking-war" depends="init"
unless="booking-ejb.target.class.dir.exists">
+ <ant antfile="${booking-ejb.dir}/build.xml"
target="compile" inheritAll="false"/>
+ </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">
+ <copy todir="${target.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>
+
+ <ear destfile="${target.dir}/booking.ear"
+ basedir="${target.classes.dir}"
+
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>
+ </ear>
+ </target>
+</project>
\ No newline at end of file
Added: branches/community/Seam_2_3/examples-ee6/booking/booking-ejb/build.xml
===================================================================
--- branches/community/Seam_2_3/examples-ee6/booking/booking-ejb/build.xml
(rev 0)
+++ branches/community/Seam_2_3/examples-ee6/booking/booking-ejb/build.xml 2012-08-28
04:59:39 UTC (rev 15090)
@@ -0,0 +1,153 @@
+<?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"/>
+ <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="antlr" artifactId="antlr"
version="2.7.6" scope="provided"/>
+ <dependency groupId="commons-collections"
artifactId="commons-collections" version="3.2"
scope="provided"/>
+ <dependency groupId="dom4j" artifactId="dom4j"
version="1.6.1-brew" scope="provided"/>
+ <dependency groupId="javax.validation"
artifactId="validation-api" version="1.0.0.GA"
scope="provided"/>
+ <dependency groupId="org.hibernate"
artifactId="hibernate-core" version="4.1.0.Final"
scope="provided"/>
+ <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.common"
artifactId="hibernate-commons-annotations" version="4.0.1.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.javassist" artifactId="javassist"
version="3.15.0-GA" scope="provided"/>
+ <dependency groupId="org.jboss.el" artifactId="jboss-el"
version="1.0_02.CR6" scope="compile"/>
+ <dependency groupId="org.jboss.logging"
artifactId="jboss-logging" version="3.1.0.CR2"
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.jboss.spec.javax.transaction"
artifactId="jboss-transaction-api_1.1_spec"
+ version="1.0.0.Final" scope="provided"/>
+ <dependency groupId="org.slf4j" artifactId="slf4j-api"
version="1.6.1" scope="provided"/>
+ </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}/booking-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
Added: branches/community/Seam_2_3/examples-ee6/booking/booking-tests/build.xml
===================================================================
--- branches/community/Seam_2_3/examples-ee6/booking/booking-tests/build.xml
(rev 0)
+++ branches/community/Seam_2_3/examples-ee6/booking/booking-tests/build.xml 2012-08-28
04:59:39 UTC (rev 15090)
@@ -0,0 +1,163 @@
+<?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"/>
+ <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="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="booking-ejb.dir" value="../booking-ejb"/>
+
+ <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.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"
artifactId="hibernate-jpa-2.0-api" version="1.0.1.Final"/>
+ <dependency groupId="org.jboss.spec.javax.faces"
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.0.Final"/>
+ </artifact:dependencies>
+
+ <path id="combined.project.classpath">
+ <path refid="project.classpath"/>
+ <pathelement location="resources-integration/arquillian.xml"/>
+ <pathelement location="${booking-ejb.dir}/target/classes"/>
+ </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}"/>
+ <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>
+ <echo message="${src.test.java.dir.exists}"/>
+ <echo message="${booking-ejb.target.class.dir.exists}"/>
+ </target>
+
+ <target name="build-booking-ejb" depends="init"
unless="booking-ejb.target.class.dir.exists">
+ <ant antfile="${booking-ejb.dir}/build.xml"
target="compile" inheritAll="false"/>
+ </target>
+
+ <target name="compile" depends="build-booking-ejb"
+ 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}"/>
+ <property name="myclasspath"
refid="combined.project.classpath"/>
+
+ <!-- Emit the property to the ant console -->
+ <echo message="Classpath = ${myclasspath}"/>
+
+ <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.project.classpath"/>
+ </javac>
+ </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}"/>
+ <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}"/>
+ </batchtest>
+ </junit>
+ </target>
+
+ <target name="package" depends="test"
+ description="Compile the Java source code">
+ <jar destfile="${target.dir}/booking-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>
Added: branches/community/Seam_2_3/examples-ee6/booking/booking-web/build.xml
===================================================================
--- branches/community/Seam_2_3/examples-ee6/booking/booking-web/build.xml
(rev 0)
+++ branches/community/Seam_2_3/examples-ee6/booking/booking-web/build.xml 2012-08-28
04:59:39 UTC (rev 15090)
@@ -0,0 +1,144 @@
+<?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"/>
+ <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}"/>
+
+ <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}"/>
+ </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>
+</project>
Show replies by date