[jboss-cvs] jboss-seam ...
Peter Muir
peter at bleepbleep.org.uk
Thu Aug 16 06:53:47 EDT 2007
User: pmuir
Date: 07/08/16 06:53:47
Modified: jboss-seam build.xml pom.xml
Added: jboss-seam build.2.xml
Log:
More work on dependency mangement and better coverage target
Revision Changes Path
1.258 +11 -232 jboss-seam/build.xml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: build.xml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/build.xml,v
retrieving revision 1.257
retrieving revision 1.258
diff -u -b -r1.257 -r1.258
--- build.xml 13 Aug 2007 14:59:48 -0000 1.257
+++ build.xml 16 Aug 2007 10:53:46 -0000 1.258
@@ -205,13 +205,6 @@
<target name="installExtraDependencies">
- <!-- IText -->
-
- <!-- <artifact:pom file="${build.dir}/thirdparty/itext.pom.xml" id="itext.pom" />
- <artifact:install file="${lib.dir}/itext-2.0.4.jar">
- <pom refid="itext.pom" />
- </artifact:install>-->
-
<!-- JBoss POJO Cache -->
<artifact:pom file="${build.dir}/thirdparty/jboss-cache-jdk50.pom.xml" id="jboss-cache-jdk50.pom" />
@@ -219,50 +212,6 @@
<pom refid="jboss-cache-jdk50.pom" />
</artifact:install>
- <!-- Meldware -->
-
- <!-- <artifact:pom file="${build.dir}/thirdparty/meldware-mailapi.pom.xml" id="meldware-mailapi.pom" />
- <artifact:install file="${mail.dir}/buni-meldware/lib/mailapi.jar">
- <pom refid="meldware-mailapi.pom" />
- </artifact:install>-->
-
- <!--<artifact:pom file="${build.dir}/thirdparty/meldware-mailjmx.pom.xml" id="meldware-mailjmx.pom" />
- <artifact:install file="${mail.dir}/buni-meldware/lib/mailjmx.jar">
- <pom refid="meldware-mailjmx.pom" />
- </artifact:install>-->
-
-
- <!-- Drools and dependencies -->
- <!--<artifact:pom file="${build.dir}/thirdparty/mvel14.pom.xml" id="mvel14.pom" />
- <artifact:install file="${drools.lib.dir}/mvel14-1.2rc1.jar">
- <pom refid="mvel14.pom" />
- </artifact:install>
-
- <artifact:pom file="${build.dir}/thirdparty/antlr.pom.xml" id="antlr.pom" />
- <artifact:install file="${drools.lib.dir}/antlr-runtime-3.0.jar">
- <pom refid="antlr.pom" />
- </artifact:install>
-
- <artifact:pom file="${build.dir}/thirdparty/janino.pom.xml" id="janino.pom" />
- <artifact:install file="${drools.lib.dir}/janino-2.5.7.jar">
- <pom refid="janino.pom" />
- </artifact:install>
-
- <artifact:pom file="${build.dir}/thirdparty/drools.pom.xml" id="drools.pom" />
- <artifact:install>
- <pom refid="drools.pom" />
- </artifact:install>
-
- <artifact:pom file="${build.dir}/thirdparty/drools-core.pom.xml" id="drools-core.pom" />
- <artifact:install file="${drools.lib.dir}/drools-core-4.0.0.jar">
- <pom refid="drools-core.pom" />
- </artifact:install>
-
- <artifact:pom file="${build.dir}/thirdparty/drools-compiler.pom.xml" id="drools-compiler.pom" />
- <artifact:install file="${drools.lib.dir}/drools-compiler-4.0.0.jar">
- <pom refid="drools-compiler.pom" />
- </artifact:install>-->
-
<!-- Testng -->
<artifact:pom file="${build.dir}/thirdparty/testng.pom.xml" id="testng.pom" />
@@ -277,39 +226,6 @@
<pom refid="jbpm-jpdl.pom" />
</artifact:install>
- <!-- Hibernate Search -->
-
- <!--<artifact:pom file="${build.dir}/thirdparty/hibernate-commons-annotations.pom.xml" id="hibernate-commons-annotations.pom" />
- <artifact:install file="${lib.dir}/hibernate-commons-annotations.jar">
- <pom refid="hibernate-commons-annotations.pom" />
- </artifact:install>
-
- <artifact:pom file="${build.dir}/thirdparty/hibernate-search.pom.xml" id="hibernate-search.pom" />
- <artifact:install file="${lib.dir}/hibernate-search.jar">
- <pom refid="hibernate-search.pom" />
- </artifact:install>-->
-
- <!-- JBoss EL -->
-
- <!--<artifact:pom file="${build.dir}/thirdparty/jboss-el.pom.xml" id="jboss-el.pom" />
- <artifact:install file="${lib.dir}/jboss-el.jar">
- <pom refid="jboss-el.pom" />
- </artifact:install>-->
-
- <!-- JBoss Embedded -->
-
- <!--<artifact:pom file="${build.dir}/thirdparty/jboss-embedded.pom.xml" id="jboss-embedded.pom" />
- <artifact:install file="${lib.dir}/jboss-embedded-all.jar">
- <pom refid="jboss-embedded.pom" />
- </artifact:install>-->
-
- <!-- Quartz -->
-
- <!--<artifact:pom file="${build.dir}/thirdparty/quartz.pom.xml" id="quartz.pom" />
- <artifact:install file="${lib.dir}/quartz-1.6.0.jar">
- <pom refid="quartz.pom" />
- </artifact:install>-->
-
</target>
<target name="init.m2" depends="installExtraDependencies">
@@ -320,55 +236,6 @@
</artifact:install>
</target>
- <!--<target name="initcore.m2" depends="init.m2">
- <artifact:pom file="${build.dir}/core.pom.xml" id="core.pom" />
- <artifact:dependencies pathId="build.core.path" versionsId="build.core.versions" useScope="compile">
- <pom refid="core.pom" />
- </artifact:dependencies>
- </target>-->
-
- <!--<target name="initioc.m2" depends="init.m2, jarcore.m2">
- <artifact:pom file="${build.dir}/ioc.pom.xml" id="ioc.pom" />
- <artifact:dependencies pathId="build.ioc.path" versionsId="build.ioc.versions" useScope="compile">
- <pom refid="ioc.pom" />
- </artifact:dependencies>
- </target>-->
-
- <!--<target name="initpdf.m2" depends="init.m2, jarcore.m2, jarui.m2">
- <artifact:pom file="${build.dir}/pdf.pom.xml" id="pdf.pom" />
- <artifact:dependencies pathId="build.pdf.path" versionsId="build.pdf.versions" useScope="compile">
- <pom refid="pdf.pom" />
- </artifact:dependencies>
- </target>-->
-
- <!--<target name="initmail.m2" depends="init.m2, jarcore.m2, jarui.m2, jarpdf.m2">
- <artifact:pom file="${build.dir}/mail.pom.xml" id="mail.pom" />
- <artifact:dependencies pathId="build.mail.path" versionsId="build.mail.versions" useScope="compile">
- <pom refid="mail.pom" />
- </artifact:dependencies>
- </target>-->
-
- <!--<target name="initremoting.m2" depends="init.m2, jarcore.m2">
- <artifact:pom file="${build.dir}/remoting.pom.xml" id="remoting.pom" />
- <artifact:dependencies pathId="build.remoting.path" versionsId="build.remoting.versions" useScope="compile">
- <pom refid="remoting.pom" />
- </artifact:dependencies>
- </target>-->
-
- <!--<target name="initdebug.m2" depends="init.m2, jarcore.m2">
- <artifact:pom file="${build.dir}/debug.pom.xml" id="debug.pom" />
- <artifact:dependencies pathId="build.debug.path" versionsId="build.debug.versions" useScope="compile">
- <pom refid="debug.pom" />
- </artifact:dependencies>
- </target>-->
-
- <!--<target name="initgen.m2" depends="init.m2, jarcore.m2">
- <artifact:pom file="${build.dir}/gen.pom.xml" id="gen.pom" />
- <artifact:dependencies pathId="build.gen.path" versionsId="build.gen.versions" useScope="compile">
- <pom refid="gen.pom" />
- </artifact:dependencies>
- </target>-->
-
<!-- ########################## BUILD TARGETS ##########################-->
<target name="clean" description="Cleans up the build directory">
@@ -423,21 +290,10 @@
<compile classesdir="${classes.core.dir}" srcdir="${src.core.dir}" />
</target>
- <!--<target name="compilecore.m2" depends="initcore.m2, initcore,select-compiler,antlr">
- <compile classesdir="${classes.core.dir}" srcdir="${src.core.dir}" classpath="build.core.path" />
- </target>-->
-
<target name="jarcore" depends="compilecore" description="Build the distribution .jar file for the core package">
<archive classesdir="${classes.core.dir}" module="jboss-seam" />
</target>
- <!--<target name="jarcore.m2" depends="compilecore.m2" description="Build the distribution .jar file using M2 dependency management">
- <archive classesdir="${classes.core.dir}" module="jboss-seam" />
- <artifact:install file="${basedir}/jboss-seam.jar">
- <pom refid="core.pom" />
- </artifact:install>
- </target>-->
-
<!-- ########################### PDF TARGETS ###########################-->
<target name="initpdf">
@@ -458,20 +314,6 @@
<archive classesdir="${classes.pdf.dir}" module="jboss-seam-pdf" />
</target>
- <!--<target name="compilepdf.m2" depends="initpdf, initpdf.m2, select-compiler">
- <property name="cp" refid="build.pdf.path" />
- <echo>${cp}</echo>
- <compile classesdir="${classes.pdf.dir}" srcdir="${src.pdf.dir}" classpath="build.pdf.path" />
- </target>-->
-
- <!--<target name="jarpdf.m2" depends="compilepdf.m2" description="Build the distribution .jar file for the PDF package">
- <archive classesdir="${classes.pdf.dir}" module="jboss-seam-pdf" />
- <artifact:install file="${basedir}/jboss-seam-pdf.jar">
- <pom refid="pdf.pom" />
- </artifact:install>
- </target>-->
-
-
<!-- ########################### IOC TARGETS ###########################-->
<target name="initioc">
@@ -486,17 +328,6 @@
<archive classesdir="${classes.ioc.dir}" module="jboss-seam-ioc" />
</target>
- <!--<target name="compileioc.m2" depends="initioc, initioc.m2, select-compiler">
- <compile classesdir="${classes.ioc.dir}" srcdir="${src.ioc.dir}" classpath="build.ioc.path" />
- </target>-->
-
- <!--<target name="jarioc.m2" depends="compileioc.m2" description="Build the distribution .jar file for the IOC package">
- <archive classesdir="${classes.ioc.dir}" module="jboss-seam-ioc" />
- <artifact:install file="${basedir}/jboss-seam-ioc.jar">
- <pom refid="ioc.pom" />
- </artifact:install>
- </target>-->
-
<!-- ########################### MAIL TARGETS ###########################-->
@@ -519,17 +350,6 @@
<archive classesdir="${classes.mail.dir}" module="jboss-seam-mail" />
</target>
- <!--<target name="compilemail.m2" depends="initmail, initmail.m2, select-compiler">
- <compile classesdir="${classes.mail.dir}" srcdir="${src.mail.dir}" classpath="build.mail.path" />
- </target>-->
-
- <!--<target name="jarmail.m2" depends="compilemail.m2" description="Build the distribution .jar file for the IOC package">
- <archive classesdir="${classes.mail.dir}" module="jboss-seam-mail" />
- <artifact:install file="${basedir}/jboss-seam-mail.jar">
- <pom refid="mail.pom" />
- </artifact:install>
- </target>-->
-
<!-- ########################### DEBUG TARGETS ###########################-->
@@ -545,17 +365,6 @@
<archive classesdir="${classes.debug.dir}" module="jboss-seam-debug" />
</target>
- <!--<target name="compiledebug.m2" depends="initdebug, initdebug.m2, select-compiler">
- <compile classesdir="${classes.debug.dir}" srcdir="${src.debug.dir}" classpath="build.debug.path" />
- </target>-->
-
- <!--<target name="jardebug.m2" depends="compiledebug.m2" description="Build the distribution .jar file for the IOC package">
- <archive classesdir="${classes.debug.dir}" module="jboss-seam-debug" />
- <artifact:install file="${basedir}/jboss-seam-debug.jar">
- <pom refid="debug.pom" />
- </artifact:install>
- </target>-->
-
<!-- ########################### GEN TARGETS ###########################-->
@@ -571,17 +380,6 @@
<archive classesdir="${classes.gen.dir}" module="jboss-seam-gen" />
</target>
- <!--<target name="compilegen.m2" depends="initgen, initgen.m2, select-compiler">
- <compile classesdir="${classes.gen.dir}" srcdir="${src.gen.dir}" classpath="build.gen.path" />
- </target>-->
-
- <!--<target name="jargen.m2" depends="compilegen.m2" description="Build the distribution .jar file for the gen package">
- <archive classesdir="${classes.gen.dir}" module="jboss-seam-gen" />
- <artifact:install file="${basedir}/jboss-seam-gen.jar">
- <pom refid="gen.pom" />
- </artifact:install>
- </target>-->
-
<!-- ########################### REMOTING TARGETS ###########################-->
@@ -597,16 +395,6 @@
<archive classesdir="${classes.remoting.dir}" module="jboss-seam-remoting" />
</target>
- <!--<target name="compileremoting.m2" depends="initremoting, initremoting.m2, select-compiler">
- <compile classesdir="${classes.remoting.dir}" srcdir="${src.remoting.dir}" classpath="build.remoting.path" />
- </target>-->
-
- <!--<target name="jarremoting.m2" depends="compileremoting.m2" description="Build the distribution .jar file for the Remoting package">
- <archive classesdir="${classes.remoting.dir}" module="jboss-seam-remoting" />
- <artifact:install file="${basedir}/jboss-seam-remoting.jar">
- <pom refid="remoting.pom" />
- </artifact:install>
- </target>-->
<!-- ########################### UI TARGETS ###########################-->
@@ -622,13 +410,6 @@
<copy file="${basedir}/${name}-ui.jar" todir="${dist.dir}" />
</target>
- <!--<target name="jarui.m2" description="Build the distribution .jar file for the UI package based on A4J CDK" depends="init.m2, jarcore.m2">
- <mkdir dir="${dist.dir}" />
- <cdk target="install" />
- <copy file="${ui.dir}/target/jboss-seam-ui.jar" tofile="${basedir}/${name}-ui.jar" />
- <copy file="${basedir}/${name}-ui.jar" todir="${dist.dir}" />
- </target>-->
-
<!-- ########################### TEST TARGETS ##########################-->
@@ -756,6 +537,7 @@
<ant dir="examples/registration" target="test" inheritall="false" />
<ant dir="examples/todo" target="test" inheritall="false" />
<ant dir="examples/blog" target="test" inheritall="false" />
+ <!--<ant dir="examples/wiki" target="test" inheritall="false" />-->
<!--<ant dir="examples/portal" target="test" inheritall="false" />-->
</target>
@@ -772,15 +554,12 @@
<!--<ant dir="examples/portal" target="validateConfiguration" inheritall="false" />-->
</target>
- <target name="instrumentall" depends="instrumentcore" />
-
- <target name="coverageall" depends="instrumentall, testall, coveragecore" description="Run the core unit tests and all example tests with code coverage" />
<!-- ################## CONTINUOUS INTEGRATION TARGETS #################-->
<!-- Continuous integration wrapper target -->
<!-- N.B. validateall must run last as it actually causes the build to fail rather than acting as a test (TODO Fix this) -->
- <target name="ci" depends="cleanall, coverageall, copytestoutput, dist, testreport, validateall" />
+ <target name="ci" depends="cleanall, coverageall, copytestoutput, testreport, cleanall, dist, validateall" />
<!-- ########################## DIST TARGETS ###########################-->
@@ -1015,15 +794,12 @@
</copy>
</target>
- <target name="instrumentcore" depends="inittestcore">
+ <target name="instrumentcore" depends="compilecore">
<taskdef resource="emma_ant.properties" classpathref="classpath.emma" />
<mkdir dir="${classes.coverage.core.dir}" />
<mkdir dir="${coverage.dir}/core" />
- <move todir="${classes.coverage.core.dir}">
- <fileset dir="${classes.test.core.dir}" />
- </move>
<emma>
- <instr instrpath="${classes.coverage.core.dir}" mode="overwrite" metadatafile="${coverage.dir}/coveragecore.em">
+ <instr instrpath="${classes.core.dir}" mode="overwrite" metadatafile="${coverage.dir}/coveragecore.em">
<!-- Exclude packages we don't want coverage for -->
<filter excludes="org.jboss.seam.annotations.*" />
<filter excludes="org.jboss.seam.test.*" />
@@ -1033,7 +809,7 @@
</emma>
</target>
- <target name="coveragecore" depends="instrumentcore,testcore" description="Generate a test coverage report for the core tests">
+ <target name="coveragecore" depends="instrumentcore, testall" description="Run the core unit tests and all example tests with code coverage">
<move file="${basedir}/coverage.ec" tofile="${coverage.dir}/coveragecore.ec" />
<emma>
<report sourcepath="${src.core.dir}" depth="method">
@@ -1045,6 +821,9 @@
<echo>Code coverage report for core classes available at ${report.dir}/coverage.html</echo>
</target>
+ <target name="coverageall" depends="coveragecore" description="Run all unit tests with coverage" />
+
+
<!-- ########################## MACRO DEFS ##########################-->
<macrodef name="init">
1.3 +77 -41 jboss-seam/pom.xml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: pom.xml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/pom.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- pom.xml 11 Jul 2007 18:33:54 -0000 1.2
+++ pom.xml 16 Aug 2007 10:53:46 -0000 1.3
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
- <groupId>jboss</groupId>
+ <groupId>org.jboss.seam</groupId>
<artifactId>jboss-seam</artifactId>
<url>http://jboss.com/products/seam</url>
<version>2.0.0.BETA</version>
@@ -50,6 +50,11 @@
<id>maven2.java.net</id>
<url>http://download.java.net/maven/2/</url>
</repository>
+ <repository>
+ <id>local</id>
+ <name>Local Repository</name>
+ <url>file://${basedir}/../build/repository</url>
+ </repository>
</repositories>
<dependencyManagement>
@@ -62,24 +67,37 @@
<!-- All Seam modules -->
<dependency>
- <groupId>jboss</groupId>
+ <groupId>org.jboss.seam</groupId>
<artifactId>jboss-seam-core</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
- <groupId>jboss</groupId>
+ <groupId>org.jboss.seam</groupId>
<artifactId>jboss-seam-ui</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
- <groupId>jboss</groupId>
+ <groupId>org.jboss.seam</groupId>
<artifactId>jboss-seam-pdf</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-seam-remoting</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-seam-ioc</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+
+
+ <dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
@@ -104,27 +122,39 @@
</dependency>
<dependency>
+ <groupId>org.richfaces</groupId>
+ <artifactId>richfaces</artifactId>
+ <version>3.0.1</version>
+ </dependency>
+
+ <dependency>
<groupId>javax.faces</groupId>
<artifactId>jsf-api</artifactId>
- <version>1.2_04-p01</version>
+ <version>1.2_04-p02</version>
</dependency>
<dependency>
- <groupId>jboss</groupId>
+ <groupId>javax.faces</groupId>
+ <artifactId>jsf-impl</artifactId>
+ <version>1.2_04-p02</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.jbpm</groupId>
<artifactId>jbpm-jpdl</artifactId>
- <version>3.2.1-jboss-seam-2.0.0.BETA</version>
+ <version>3.2.1</version>
</dependency>
<dependency>
- <groupId>jboss</groupId>
+ <groupId>org.jboss</groupId>
<artifactId>jboss-cache-jdk50</artifactId>
- <version>1.4.1.GA-jboss-seam-2.0.0.BETA</version>
+ <version>1.4.1.GA</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate</artifactId>
- <version>3.2.1.ga</version>
+ <version>3.2.4.sp1</version>
</dependency>
<dependency>
@@ -146,12 +176,6 @@
</dependency>
<dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>3.8.1</version>
- </dependency>
-
- <dependency>
<groupId>javax.persistence</groupId>
<artifactId>persistence-api</artifactId>
<version>1.0</version>
@@ -160,7 +184,8 @@
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-annotations</artifactId>
- <version>3.2.0.ga</version>
+ <version>3.2.1.ga</version>
+
</dependency>
<dependency>
@@ -168,27 +193,26 @@
<artifactId>jboss-system</artifactId>
<version>4.2.0.GA</version>
</dependency>
-
<dependency>
<groupId>jboss</groupId>
- <artifactId>jboss-jmx</artifactId>
- <version>4.2.0.GA</version>
+ <artifactId>jbossxb</artifactId>
+ <version>1.0.0.CR8</version>
</dependency>
<dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>3.8.1</version>
+ <groupId>jboss</groupId>
+ <artifactId>jboss-jmx</artifactId>
+ <version>4.2.0.GA</version>
</dependency>
- <!-- Should be 3.5.CR1, but this doesn't seem to exist -->
+ <!-- Should be 3.3.GA to be in sync with AS, but this doesn't seem to exist -->
<dependency>
<groupId>javassist</groupId>
<artifactId>javassist</artifactId>
- <version>3.5-SNAPSHOT</version>
+ <version>3.4.GA</version>
</dependency>
- <!-- Should be 1.1.0.jboss, but doesn't exist in Maven -->
+ <!-- Should be 1.0.5.GA-jboss, to be in sync with AS but doesn't exist in Maven -->
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
@@ -262,51 +286,51 @@
</dependency>
<dependency>
- <groupId>org.buni</groupId>
+ <groupId>org.buni.meldware</groupId>
<artifactId>meldware-mailjmx</artifactId>
- <version>1.0M8-jboss-seam-2.0.0.BETA</version>
+ <version>1.0M8</version>
</dependency>
<dependency>
- <groupId>org.buni</groupId>
+ <groupId>org.buni.meldware</groupId>
<artifactId>meldware-mailapi</artifactId>
- <version>1.0M8-jboss-seam-2.0.0.BETA</version>
+ <version>1.0M8</version>
</dependency>
<dependency>
<groupId>org.drools</groupId>
<artifactId>drools-core</artifactId>
- <version>4.0.0.MR2-jboss-seam-2.0.0.BETA</version>
+ <version>4.0.0</version>
</dependency>
<dependency>
<groupId>org.drools</groupId>
<artifactId>drools-compiler</artifactId>
- <version>4.0.0.MR2-jboss-seam-2.0.0.BETA</version>
+ <version>4.0.0</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-search</artifactId>
- <version>3.0.0.Beta3-jboss-seam-2.0.0.BETA</version>
+ <version>3.0.0.Beta4</version>
</dependency>
<dependency>
- <groupId>jboss</groupId>
+ <groupId>org.jboss.seam</groupId>
<artifactId>jboss-el</artifactId>
- <version>jboss-seam-2.0.0.BETA</version>
+ <version>2.0.0.BETA</version>
</dependency>
<dependency>
- <groupId>jboss</groupId>
- <artifactId>jboss-embedded</artifactId>
- <version>beta2-jboss-seam-2.0.0.BETA</version>
+ <groupId>org.jboss.embedded</groupId>
+ <artifactId>jboss-embedded-api</artifactId>
+ <version>beta2</version>
</dependency>
<dependency>
<groupId>quartz</groupId>
<artifactId>quartz</artifactId>
- <version>1.6.0-jboss-seam-2.0.0.BETA</version>
+ <version>1.6.0</version>
</dependency>
<dependency>
@@ -330,7 +354,7 @@
<dependency>
<groupId>com.lowagie</groupId>
<artifactId>itext</artifactId>
- <version>2.0.4-jboss-seam-2.0.0.BETA</version>
+ <version>2.0.4</version>
</dependency>
<dependency>
@@ -351,6 +375,18 @@
<version>1.6.1-jboss</version>
</dependency>
+ <dependency>
+ <groupId>org.beanshell</groupId>
+ <artifactId>bsh</artifactId>
+ <version>2.0b4</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.tuckey</groupId>
+ <artifactId>urlrewritefilter</artifactId>
+ <version>3.0.4</version>
+ </dependency>
+
</dependencies>
</dependencyManagement>
</project>
\ No newline at end of file
1.1 date: 2007/08/16 10:53:46; author: pmuir; state: Exp;jboss-seam/build.2.xml
Index: build.2.xml
===================================================================
<?xml version="1.0"?>
<project name="Seam2" default="build" basedir="." xmlns:artifact="urn:maven-artifact-ant">
<tstamp />
<!-- If build.properties doesn't exist, create it by copying build.properties.sample -->
<condition property="copy.default.properties">
<and>
<available file="${basedir}/build.properties.sample" />
<not>
<available file="${basedir}/build.properties" />
</not>
</and>
</condition>
<copy todir="${basedir}">
<fileset dir="${basedir}">
<include name="build.properties.sample" if="copy.default.properties" />
</fileset>
<mapper type="glob" from="build.properties.sample" to="build.properties" />
</copy>
<!-- Give user a chance to override without editing this file or typing -D -->
<property file="${basedir}/build.properties" />
<!-- Set the version if not set in build.properties -->
<condition property="version" value="${DSTAMP}">
<not>
<isset property="version" />
</not>
</condition>
<condition property="patchlevel" value="${TSTAMP}">
<not>
<isset property="patchelevel" />
</not>
</condition>
<!-- Name of project and version, used to create filenames -->
<property name="Name" value="JBoss Seam" />
<property name="name" value="jboss-seam" />
<property name="schema.version" value="${version}" />
<!-- set global properties for this build -->
<!-- Targets -->
<property name="classes.dir" value="classes" />
<property name="classes.core.dir" value="${classes.dir}/coreclasses" />
<property name="classes.pdf.dir" value="${classes.dir}/pdfclasses" />
<property name="classes.ioc.dir" value="${classes.dir}/iocclasses" />
<property name="classes.mail.dir" value="${classes.dir}/mailclasses" />
<property name="classes.debug.dir" value="${classes.dir}/debugclasses" />
<property name="classes.remoting.dir" value="${classes.dir}/remotingclasses" />
<property name="classes.gen.dir" value="${classes.dir}/genclasses" />
<property name="classes.test.dir" value="${classes.dir}/testclasses" />
<property name="ui.dir" value="ui" />
<property name="seamgen.dir" value="${basedir}/seam-gen" />
<!-- Source directories -->
<property name="src.core.dir" value="src/main" />
<property name="src.ui.dir" value="${ui.dir}/src" />
<property name="src.pdf.dir" value="src/pdf" />
<property name="src.ioc.dir" value="src/ioc" />
<property name="src.mail.dir" value="src/mail" />
<property name="src.debug.dir" value="src/debug" />
<property name="src.gen.dir" value="src/gen" />
<property name="src.remoting.dir" value="src/remoting" />
<property name="src.test.dir" value="src/test/misc" />
<!-- Library directories -->
<property name="mail.dir" value="${basedir}/mail" />
<property name="eejb.conf.dir" value="${basedir}/bootstrap" />
<property name="drools.dir" value="${basedir}/drools" />
<property name="hibernate.dir" value="${basedir}/hibernate" />
<!-- Build resources -->
<property name="build.dir" value="${basedir}/build" />
<property name="build.thirdparty.dir" value="${basedir}/build/thirdparty" />
<property name="build.lib.dir" value="${build.dir}/lib" />
<property name="maven.dir" value="${build.dir}/maven" />
<!-- Documentation -->
<property name="doc.dir" value="doc" />
<property name="doc.api.dir" value="${doc.dir}/api" />
<property name="doc.ref.dir" value="${doc.dir}/reference" />
<property name="javadoc.link" value="http://java.sun.com/j2se/5.0/docs/api" />
<!-- Distribution targets -->
<property name="dist.name" value="${name}-${version}.${patchlevel}" />
<property name="dist.location" value="${basedir}/../" />
<property name="dist.dir" value="${dist.location}/${dist.name}" />
<property name="dist.ui.dir" value="${dist.dir}/ui" />
<property name="dist.doc.dir" value="${dist.dir}/doc" />
<property name="dist.api.dir" value="${dist.dir}/doc/api" />
<property name="dist.ref.dir" value="${dist.dir}/doc/reference" />
<property name="dist.src.core.dir" value="${dist.dir}/src/main" />
<property name="dist.ui.dir" value="${dist.dir}/ui" />
<property name="dist.src.pdf.dir" value="${dist.dir}/src/pdf" />
<property name="dist.src.ioc.dir" value="${dist.dir}/src/ioc" />
<property name="dist.src.mail.dir" value="${dist.dir}/src/mail" />
<property name="dist.src.debug.dir" value="${dist.dir}/src/debug" />
<property name="dist.src.gen.dir" value="${dist.dir}/src/gen" />
<property name="dist.src.remoting.dir" value="${dist.dir}/src/remoting" />
<property name="dist.src.test.dir" value="${dist.dir}/src/test/misc" />
<property name="dist.lib.dir" value="${dist.dir}/lib" />
<property name="dist.eejb.conf.dir" value="${dist.dir}/bootstrap" />
<property name="dist.drools.dir" value="${dist.dir}/drools" />
<property name="dist.hibernate.dir" value="${dist.dir}/hibernate" />
<property name="dist.mail.dir" value="${dist.dir}/mail" />
<property name="dist.build.dir" value="${dist.dir}/build" />
<property name="dist.seamgen.dir" value="${dist.dir}/seam-gen" />
<property name="dist.ui.api.dir" value="${dist.dir}/doc/ui" />
<property name="deploy.dir" value="${jboss.home}/server/default/deploy" />
<property name="webroot.dir" value="${deploy.dir}/jbossweb-tomcat55.sar/ROOT.war" />
<!-- Tests -->
<property name="classes.coverage.dir" value="classes/coverage" />
<property name="classes.test.core.dir" value="${classes.dir}/test/core" />
<property name="classes.coverage.core.dir" value="${classes.coverage.dir}/core" />
<property name="test.dir" value="${basedir}/test-output" />
<property name="report.dir" value="${basedir}/test-report" />
<property name="coverage.dir" value="${basedir}/coverage-output" />
<property name="testng.jar" value="${basedir}/lib/testng-5.6-jdk15.jar" />
<property name="bootstrap.dir" value="${basedir}/bootstrap" />
<!-- CI -->
<property name="ci.dir" value="${basedir}/ci" />
<property name="javac.debug" value="true" />
<property name="javac.deprecation" value="false" />
<fileset id="lib" dir="${basedir}" description="compile-time dependencies">
<include name="lib/*.jar" />
<include name="drools/lib/*.jar" />
<include name="mail/buni-meldware/lib/*.jar" />
</fileset>
<path id="classpath.emma">
<pathelement location="${basedir}/extras/emma/emma.jar" />
<pathelement location="${basedir}/extras/emma/emma_ant.jar" />
</path>
<fileset id="eejb.conf" dir="${eejb.conf.dir}">
<include name="**/*.*" />
</fileset>
<patternset id="meta.files">
<include name="**/*.dtd" />
<include name="**/*.xsd" />
<include name="**/*.xml" />
<include name="**/*.tld" />
<include name="**/*.xslt" />
<include name="**/*.properties" />
<include name="**/*.js" />
<include name="**/*.html" />
<include name="**/*.xhtml" />
<include name="**/spring.*" />
</patternset>
<patternset id="src.files">
<!-- include everything we want in the src directory
that we didn't want in the jar itself -->
<include name="**/*.java" />
</patternset>
<patternset id="refdoc.files">
<include name="**/*.css" />
<include name="**/*.jpg" />
<include name="**/*.gif" />
<include name="**/*.png" />
</patternset>
<!-- ########################## MAVEN2 #########################-->
<path id="maven-ant-tasks.classpath" path="${build.lib.dir}/maven-ant-tasks.jar" />
<typedef resource="org/apache/maven/artifact/ant/antlib.xml" uri="urn:maven-artifact-ant" classpathref="maven-ant-tasks.classpath" />
<target name="init">
<artifact:pom file="${basedir}/pom.xml" id="seam.pom" />
<artifact:install>
<pom refid="seam.pom" />
</artifact:install>
</target>
<!-- ########################## BUILD TARGETS ##########################-->
<target name="clean" description="Cleans up the build directory" depends="init">
<delete dir="${classes.dir}" />
<delete dir="${test.dir}" />
<delete dir="${report.dir}" />
<delete dir="${coverage.dir}" />
<delete dir="${ci.dir}" />
<delete file="coverage.ec" failonerror="false" />
<cdk target="clean" />
</target>
<target name="build" depends="jarcore,jarpdf,jarioc,jarmail,jarremoting,jardebug,jargen,jarui" description="Build all four distribution .jar files" />
<target name="select-compiler">
<available classname="org.eclipse.jdt.core.JDTCompilerAdapter" property="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter" />
</target>
<!-- ########################### CORE ##########################-->
<target name="initcore" depends="init">
<artifact:pom file="${build.dir}/core.pom.xml" id="core.pom" />
<init classesdir="${classes.core.dir}" srcdir="${src.core.dir}" modulename="Core" />
<artifact:dependencies pathId="compile.core.path" useScope="compile">
<pom refid="core.pom" />
</artifact:dependencies>
<artifact:dependencies filesetId="compile.core.fileset" versionsId="compile.core.versions" useScope="compile">
<pom refid="core.pom" />
</artifact:dependencies>
</target>
<target name="antlr" description="Generate ANTLR parser" depends="initcore">
<mkdir dir="${src.core.dir}/org/jboss/seam/text" />
<taskdef name="antlrtask" classname="org.apache.tools.ant.taskdefs.optional.ANTLR">
<classpath refid="compile.core.path" />
</taskdef>
<antlrtask target="seam-text.g" outputdirectory="${src.core.dir}/org/jboss/seam/text">
<classpath refid="compile.core.path" />
</antlrtask>
</target>
<target name="compilecore" depends="initcore,select-compiler,antlr">
<compile classesdir="${classes.core.dir}" srcdir="${src.core.dir}" classpath="compile.core.path" />
</target>
<target name="jarcore" depends="compilecore" description="Build the distribution .jar file using M2 dependency management">
<archive classesdir="${classes.core.dir}" module="jboss-seam" />
<artifact:install file="${basedir}/jboss-seam.jar">
<pom refid="core.pom" />
</artifact:install>
</target>
<!-- ########################### PDF TARGETS ###########################-->
<target name="initpdf" depends="init, jarcore, jarui">
<artifact:pom file="${build.dir}/pdf.pom.xml" id="pdf.pom" />
<init classesdir="${classes.pdf.dir}" srcdir="${src.pdf.dir}" modulename="PDF" />
<artifact:dependencies pathId="compile.pdf.path" useScope="compile">
<pom refid="pdf.pom" />
</artifact:dependencies>
<artifact:dependencies filesetId="compile.pdf.fileset" versionsId="compile.pdf.versions" useScope="compile">
<pom refid="pdf.pom" />
</artifact:dependencies>
</target>
<target name="compilepdf" depends="initpdf, select-compiler">
<compile classesdir="${classes.pdf.dir}" srcdir="${src.pdf.dir}" classpath="compile.pdf.path" />
</target>
<target name="jarpdf" depends="compilepdf" description="Build the distribution .jar file for the PDF package">
<archive classesdir="${classes.pdf.dir}" module="jboss-seam-pdf" />
<artifact:install file="${basedir}/jboss-seam-pdf.jar">
<pom refid="pdf.pom" />
</artifact:install>
</target>
<!-- ########################### IOC TARGETS ###########################-->
<target name="initioc" depends="init, jarcore">
<init classesdir="${classes.ioc.dir}" srcdir="${src.ioc.dir}" modulename="ioc" />
<artifact:pom file="${build.dir}/ioc.pom.xml" id="ioc.pom" />
<artifact:dependencies pathId="compile.ioc.path" useScope="compile">
<pom refid="ioc.pom" />
</artifact:dependencies>
<artifact:dependencies filesetId="compile.ioc.fileset" versionsId="compile.ioc.versions" useScope="compile">
<pom refid="ioc.pom" />
</artifact:dependencies>
</target>
<target name="compileioc" depends="initioc, select-compiler">
<compile classesdir="${classes.ioc.dir}" srcdir="${src.ioc.dir}" classpath="compile.ioc.path" />
</target>
<target name="jarioc" depends="compileioc" description="Build the distribution .jar file for the IOC package">
<archive classesdir="${classes.ioc.dir}" module="jboss-seam-ioc" />
<artifact:install file="${basedir}/jboss-seam-ioc.jar">
<pom refid="ioc.pom" />
</artifact:install>
</target>
<!-- ########################### MAIL TARGETS ###########################-->
<target name="initmail" depends="init, jarcore, jarui, jarpdf">
<init classesdir="${classes.mail.dir}" srcdir="${src.mail.dir}" modulename="Mail" />
<artifact:pom file="${build.dir}/mail.pom.xml" id="mail.pom" />
<artifact:dependencies pathId="compile.mail.path" useScope="compile">
<pom refid="mail.pom" />
</artifact:dependencies>
<artifact:dependencies filesetId="compile.mail.fileset" versionsId="compile.mail.versions" useScope="compile">
<pom refid="mail.pom" />
</artifact:dependencies>
</target>
<target name="compilemail" depends="initmail, select-compiler">
<compile classesdir="${classes.mail.dir}" srcdir="${src.mail.dir}" classpath="compile.mail.path" />
</target>
<target name="jarmail" depends="compilemail" description="Build the distribution .jar file for the IOC package">
<archive classesdir="${classes.mail.dir}" module="jboss-seam-mail" />
<artifact:install file="${basedir}/jboss-seam-mail.jar">
<pom refid="mail.pom" />
</artifact:install>
</target>
<!-- ########################### DEBUG TARGETS ###########################-->
<target name="initdebug" depends="init, jarcore">
<init classesdir="${classes.debug.dir}" srcdir="${src.debug.dir}" modulename="Debug" />
<artifact:pom file="${build.dir}/debug.pom.xml" id="debug.pom" />
<artifact:dependencies pathId="compile.debug.path" useScope="compile">
<pom refid="debug.pom" />
</artifact:dependencies>
<artifact:dependencies filesetId="compile.debug.fileset" versionsId="compile.debug.versions" useScope="compile">
<pom refid="debug.pom" />
</artifact:dependencies>
</target>
<target name="compiledebug" depends="initdebug, select-compiler">
<compile classesdir="${classes.debug.dir}" srcdir="${src.debug.dir}" classpath="compile.debug.path" />
</target>
<target name="jardebug" depends="compiledebug" description="Build the distribution .jar file for the IOC package">
<archive classesdir="${classes.debug.dir}" module="jboss-seam-debug" />
<artifact:install file="${basedir}/jboss-seam-debug.jar">
<pom refid="debug.pom" />
</artifact:install>
</target>
<!-- ########################### GEN TARGETS ###########################-->
<target name="initgen" depends="init, jarcore">
<init classesdir="${classes.gen.dir}" srcdir="${src.gen.dir}" modulename="GEN" />
<artifact:pom file="${build.dir}/gen.pom.xml" id="gen.pom" />
<artifact:dependencies pathId="compile.gen.path" useScope="compile">
<pom refid="gen.pom" />
</artifact:dependencies>
<artifact:dependencies filesetId="compile.gen.fileset" versionsId="compile.gen.versions" useScope="compile">
<pom refid="gen.pom" />
</artifact:dependencies>
</target>
<target name="compilegen" depends="initgen, select-compiler">
<compile classesdir="${classes.gen.dir}" srcdir="${src.gen.dir}" classpath="compile.gen.path" />
</target>
<target name="jargen" depends="compilegen" description="Build the distribution .jar file for the gen package">
<archive classesdir="${classes.gen.dir}" module="jboss-seam-gen" />
<artifact:install file="${basedir}/jboss-seam-gen.jar">
<pom refid="gen.pom" />
</artifact:install>
</target>
<!-- ########################### REMOTING TARGETS ###########################-->
<target name="initremoting" depends="init, jarcore">
<init classesdir="${classes.remoting.dir}" srcdir="${src.remoting.dir}" modulename="Remoting" />
<artifact:pom file="${build.dir}/remoting.pom.xml" id="remoting.pom" />
<artifact:dependencies pathId="compile.remoting.path" useScope="compile">
<pom refid="remoting.pom" />
</artifact:dependencies>
<artifact:pom file="${build.dir}/remoting.pom.xml" id="remoting.pom" />
<artifact:dependencies filesetId="compile.remoting.fileset" versionsId="compile.remoting.versions" useScope="compile">
<pom refid="remoting.pom" />
</artifact:dependencies>
</target>
<target name="compileremoting" depends="initremoting, select-compiler">
<compile classesdir="${classes.remoting.dir}" srcdir="${src.remoting.dir}" classpath="compile.remoting.path" />
</target>
<target name="jarremoting" depends="compileremoting" description="Build the distribution .jar file for the Remoting package">
<archive classesdir="${classes.remoting.dir}" module="jboss-seam-remoting" />
<artifact:install file="${basedir}/jboss-seam-remoting.jar">
<pom refid="remoting.pom" />
</artifact:install>
</target>
<!-- ########################### UI TARGETS ###########################-->
<target name="initui" depends="init, jarcore">
<artifact:pom file="${ui.dir}/pom.xml" id="ui.pom" />
<artifact:dependencies pathId="compile.ui.path" useScope="compile">
<pom refid="ui.pom" />
</artifact:dependencies>
<artifact:dependencies filesetId="compile.ui.fileset" versionsId="compile.ui.versions" useScope="compile">
<pom refid="ui.pom" />
</artifact:dependencies>
</target>
<target name="jarui" description="Build the distribution .jar file for the UI package based on A4J CDK" depends="init, jarcore">
<mkdir dir="${dist.dir}" />
<cdk target="install" />
<copy file="${ui.dir}/target/jboss-seam-ui.jar" tofile="${basedir}/${name}-ui.jar" />
<copy file="${basedir}/${name}-ui.jar" todir="${dist.dir}" />
</target>
<!-- ########################## 'ALL' TARGETS ##########################-->
<target name="cleanall" depends="clean,cleandist" description="Cleans up everything">
<ant dir="examples/booking" target="clean" inheritall="false" />
<ant dir="examples/blog" target="clean" inheritall="false" />
<ant dir="examples/dvdstore" target="clean" inheritall="false" />
<ant dir="examples/contactlist" target="clean" inheritall="false" />
<ant dir="examples/seampay" target="clean" inheritall="false" />
<ant dir="examples/seamspace" target="clean" inheritall="false" />
<ant dir="examples/mail" target="clean" inheritall="false" />
<ant dir="examples/ui" target="clean" inheritall="false" />
<ant dir="examples/spring" target="clean" inheritall="false" />
<ant dir="examples/itext" target="clean" inheritall="false" />
<ant dir="examples/messages" target="clean" inheritall="false" />
<ant dir="examples/numberguess" target="clean" inheritall="false" />
<ant dir="examples/registration" target="clean" inheritall="false" />
<ant dir="examples/todo" target="clean" inheritall="false" />
<!--<ant dir="examples/portal" target="clean" inheritall="false" />-->
<ant dir="examples/drools" target="clean" inheritall="false" />
<ant dir="examples/remoting/helloworld" target="clean" inheritall="false" />
<ant dir="examples/remoting/chatroom" target="clean" inheritall="false" />
<ant dir="examples/remoting/progressbar" target="clean" inheritall="false" />
<ant dir="examples/remoting/gwt" target="clean" inheritall="false" />
<ant dir="examples/hibernate2" target="clean" inheritall="false" />
<ant dir="examples/jpa" target="clean" inheritall="false" />
<ant dir="examples/jee5/booking" target="clean" inheritall="false" />
<ant dir="examples/jee5/remoting" target="clean" inheritall="false" />
<ant dir="examples/groovybooking" target="clean" inheritall="false" />
<ant dir="examples/quartz" target="clean" inheritall="false" />
<ant dir="examples/wiki" target="clean" inheritall="false" />
<ant dir="examples/seamdiscs" target="clean" inheritall="false" />
</target>
<target name="undeployall" description="Undeploy all examples">
<!-- Undeploy from JBoss -->
<ant dir="examples/booking" target="undeploy" inheritall="false" />
<ant dir="examples/blog" target="undeploy" inheritall="false" />
<ant dir="examples/dvdstore" target="undeploy" inheritall="false" />
<ant dir="examples/contactlist" target="undeploy" inheritall="false" />
<ant dir="examples/seampay" target="undeploy" inheritall="false" />
<ant dir="examples/seamspace" target="undeploy" inheritall="false" />
<ant dir="examples/itext" target="undeploy" inheritall="false" />
<ant dir="examples/mail" target="undeploy" inheritall="false" />
<ant dir="examples/ui" target="undeploy" inheritall="false" />
<!--<ant dir="examples/spring" target="undeploy" inheritall="false" />-->
<ant dir="examples/messages" target="undeploy" inheritall="false" />
<ant dir="examples/numberguess" target="undeploy" inheritall="false" />
<ant dir="examples/registration" target="undeploy" inheritall="false" />
<ant dir="examples/todo" target="undeploy" inheritall="false" />
<ant dir="examples/drools" target="undeploy" inheritall="false" />
<ant dir="examples/remoting/helloworld" target="undeploy" inheritall="false" />
<ant dir="examples/remoting/chatroom" target="undeploy" inheritall="false" />
<ant dir="examples/remoting/progressbar" target="undeploy" inheritall="false" />
<ant dir="examples/remoting/gwt" target="undeploy" inheritall="false" />
<ant dir="examples/groovybooking" target="undeploy" inheritall="false" />
<ant dir="examples/quartz" target="undeploy" inheritall="false" />
<ant dir="examples/wiki" target="undeploy" inheritall="false" />
<ant dir="examples/seamdiscs" target="undeploy" inheritall="false" />
<!-- Unexplode from JBoss -->
<ant dir="examples/booking" target="unexplode" inheritall="false" />
<ant dir="examples/blog" target="unexplode" inheritall="false" />
<ant dir="examples/dvdstore" target="unexplode" inheritall="false" />
<ant dir="examples/contactlist" target="unexplode" inheritall="false" />
<ant dir="examples/seampay" target="unexplode" inheritall="false" />
<ant dir="examples/seamspace" target="unexplode" inheritall="false" />
<ant dir="examples/itext" target="unexplode" inheritall="false" />
<ant dir="examples/mail" target="unexplode" inheritall="false" />
<ant dir="examples/ui" target="unexplode" inheritall="false" />
<!--<ant dir="examples/spring" target="unexplode" inheritall="false" />-->
<ant dir="examples/messages" target="unexplode" inheritall="false" />
<ant dir="examples/numberguess" target="unexplode" inheritall="false" />
<ant dir="examples/registration" target="unexplode" inheritall="false" />
<ant dir="examples/todo" target="unexplode" inheritall="false" />
<ant dir="examples/drools" target="unexplode" inheritall="false" />
<ant dir="examples/remoting/helloworld" target="unexplode" inheritall="false" />
<ant dir="examples/remoting/chatroom" target="unexplode" inheritall="false" />
<ant dir="examples/remoting/progressbar" target="unexplode" inheritall="false" />
<ant dir="examples/remoting/gwt" target="unexplode" inheritall="false" />
<ant dir="examples/groovybooking" target="unexplode" inheritall="false" />
<ant dir="examples/quartz" target="unexplode" inheritall="false" />
<ant dir="examples/seamdiscs" target="unexplode" inheritall="false" />
<!-- Undeploy from Tomcat -->
<ant dir="examples/booking" target="tomcat.undeploy" inheritall="false" />
<ant dir="examples/dvdstore" target="tomcat.undeploy" inheritall="false" />
<ant dir="examples/itext" target="tomcat.undeploy" inheritall="false" />
<ant dir="examples/blog" target="tomcat.undeploy" inheritall="false" />
<ant dir="examples/contactlist" target="tomcat.undeploy" inheritall="false" />
<ant dir="examples/registration" target="tomcat.undeploy" inheritall="false" />
<ant dir="examples/messages" target="tomcat.undeploy" inheritall="false" />
<ant dir="examples/todo" target="tomcat.undeploy" inheritall="false" />
<ant dir="examples/drools" target="tomcat.undeploy" inheritall="false" />
<ant dir="examples/numberguess" target="tomcat.undeploy" inheritall="false" />
<ant dir="examples/quartz" target="tomcat.undeploy" inheritall="false" />
<ant dir="examples/remoting/gwt" target="tomcat.undeploy" inheritall="false" />
</target>
<target name="deploypresentation" depends="build" description="Deploy the examples used in Seam presentations">
<ant dir="examples/booking" target="deploy" inheritall="false" />
<ant dir="examples/dvdstore" target="deploy" inheritall="false" />
<copy file="examples/seam-examples.html" todir="${webroot.dir}" />
<replace file="${webroot.dir}/seam-examples.html" token="http://localhost:8080" value="" />
</target>
<target name="testall" depends="testcore,build" description="Run the core unit tests and all example tests">
<ant dir="examples/booking" target="test" inheritall="false" />
<ant dir="examples/dvdstore" target="test" inheritall="false" />
<ant dir="examples/messages" target="test" inheritall="false" />
<ant dir="examples/numberguess" target="test" inheritall="false" />
<ant dir="examples/contactlist" target="test" inheritall="false" />
<ant dir="examples/registration" target="test" inheritall="false" />
<ant dir="examples/todo" target="test" inheritall="false" />
<ant dir="examples/blog" target="test" inheritall="false" />
<!--<ant dir="examples/portal" target="test" inheritall="false" />-->
</target>
<target name="validateall" description="Validate all example XML Configuration Files">
<ant dir="examples/booking" target="validateConfiguration" inheritall="false" />
<ant dir="examples/dvdstore" target="validateConfiguration" inheritall="false" />
<ant dir="examples/messages" target="validateConfiguration" inheritall="false" />
<ant dir="examples/numberguess" target="validateConfiguration" inheritall="false" />
<ant dir="examples/contactlist" target="validateConfiguration" inheritall="false" />
<ant dir="examples/registration" target="validateConfiguration" inheritall="false" />
<ant dir="examples/todo" target="validateConfiguration" inheritall="false" />
<ant dir="examples/blog" target="validateConfiguration" inheritall="false" />
<ant dir="examples/seamdiscs" target="validateConfiguration" inheritall="false" />
<!--<ant dir="examples/portal" target="validateConfiguration" inheritall="false" />-->
</target>
<target name="instrumentall" depends="instrumentcore" />
<target name="coverageall" depends="instrumentall, testall, coveragecore" description="Run the core unit tests and all example tests with code coverage" />
<!-- ################## CONTINUOUS INTEGRATION TARGETS #################-->
<!-- Continuous integration wrapper target -->
<!-- N.B. validateall must run last as it actually causes the build to fail rather than acting as a test (TODO Fix this) -->
<target name="ci" depends="cleanall, coverageall, copytestoutput, dist, testreport, validateall" />
<!-- ########################## DIST TARGETS ###########################-->
<target name="cleandist" description="Cleans up the dist directory">
<delete dir="${dist.dir}" />
</target>
<target name="copysource">
<copysource destdir="${dist.src.core.dir}" srcdir="${src.core.dir}" />
<copysource destdir="${dist.src.pdf.dir}" srcdir="${src.pdf.dir}" />
<copysource destdir="${dist.src.ioc.dir}" srcdir="${src.ioc.dir}" />
<copysource destdir="${dist.src.remoting.dir}" srcdir="${src.remoting.dir}" />
<copysource destdir="${dist.src.mail.dir}" srcdir="${src.mail.dir}" />
<copysource destdir="${dist.src.debug.dir}" srcdir="${src.debug.dir}" />
<copysource destdir="${dist.src.gen.dir}" srcdir="${src.gen.dir}" />
<copysource destdir="${dist.src.test.dir}" srcdir="${src.test.dir}" />
<mkdir dir="${dist.ui.dir}" />
<copy todir="${dist.ui.dir}">
<fileset dir="${ui.dir}">
<include name="src/**/*" />
<include name="pom.xml" />
</fileset>
</copy>
</target>
<target name="copylib" depends="initcore, initui, initremoting, initpdf, initioc, initgen, initmail">
<mkdir dir="${dist.lib.dir}" />
<copylib fileset="compile.core.fileset" versions="${compile.core.versions}" />
<copylib fileset="compile.ui.fileset" versions="${compile.ui.versions}" />
<copylib fileset="compile.remoting.fileset" versions="${compile.remoting.versions}" />
<copylib fileset="compile.pdf.fileset" versions="${compile.pdf.versions}" />
<copylib fileset="compile.ioc.fileset" versions="${compile.ioc.versions}" />
<copylib fileset="compile.gen.fileset" versions="${compile.gen.versions}" />
<copylib fileset="compile.mail.fileset" versions="${compile.mail.versions}" />
<copy todir="${dist.eejb.conf.dir}">
<fileset dir="${eejb.conf.dir}">
<patternset refid="meta.files" />
</fileset>
</copy>
<copy file="${eejb.conf.dir}/readme.txt" todir="${dist.eejb.conf.dir}" />
<copy todir="${dist.hibernate.dir}">
<fileset dir="${hibernate.dir}">
<include name="**/*.*" />
</fileset>
</copy>
<copy todir="${dist.mail.dir}">
<fileset dir="${mail.dir}">
<include name="**/*.*" />
</fileset>
</copy>
<copy todir="${dist.build.dir}">
<fileset dir="${build.dir}">
<include name="**/*.*" />
</fileset>
</copy>
</target>
<target name="copyexamples">
<copy todir="${dist.dir}/examples">
<fileset dir="${basedir}/examples">
<include name="booking/**/*" />
<exclude name="booking/alter.config" />
<exclude name="booking/alter.config/**/*" />
<exclude name="booking/build.alter.xml" />
<include name="hibernate2/**/*" />
<include name="jpa/**/*" />
<include name="jee5/**/*" />
<include name="blog/**/*" />
<include name="contactlist/**/*" />
<include name="registration/**/*" />
<include name="dvdstore/**/*" />
<include name="itext/**/*" />
<include name="seampay/**/*" />
<include name="seamspace/**/*" />
<include name="mail/**/*" />
<include name="spring/**/*" />
<include name="ui/**/*" />
<include name="messages/**/*" />
<include name="todo/**/*" />
<include name="numberguess/**/*" />
<include name="groovybooking/**/*" />
<include name="seamdiscs/**/*" />
<include name="quartz/**/*" />
<include name="wiki/**/*" />
<!--<include name="portal/**/*" />-->
<include name="drools/**/*" />
<include name="remoting/chatroom/**/*" />
<include name="remoting/helloworld/**/*" />
<include name="remoting/progressbar/**/*" />
<include name="remoting/gwt/**/*" />
<include name="readme.txt" />
<include name="seam-examples.html" />
<include name="build.xml" />
<exclude name="*/exploded-archives" />
<exclude name="*/exploded-archives/**/*" />
<exclude name="*/test-build" />
<exclude name="*/test-build/**/*" />
<exclude name="*/dist" />
<exclude name="*/dist/**/*" />
</fileset>
</copy>
</target>
<target name="copyseamgen">
<copy todir="${dist.seamgen.dir}">
<fileset dir="${seamgen.dir}">
<exclude name="build.properties" />
</fileset>
</copy>
</target>
<target name="extras">
<copy file="readme.txt" todir="${dist.dir}" />
<copy file="lgpl.txt" todir="${dist.dir}" />
<copy file="changelog.txt" todir="${dist.dir}" />
<copy file="build.properties" todir="${dist.dir}" />
<copy file="build.xml" todir="${dist.dir}" />
<copy file="pom.xml" todir="${dist.dir}" />
<copy file="seam" todir="${dist.dir}" />
<copy file="seam-text.g" todir="${dist.dir}" />
<copy file="seam.bat" todir="${dist.dir}" />
<copy file="validate.xml" todir="${dist.dir}" />
<copy file="seam2migration.txt" todir="${dist.dir}" />
<replace file="${dist.dir}/build.xml">
<replacetoken>
<![CDATA[${name}-${version}.${patchlevel}]]>
</replacetoken>
<replacevalue>
<![CDATA[${name}-${TODAY}]]>
</replacevalue>
</replace>
</target>
<target name="dist.classic" depends="cleandist,build,javadoc,copysource,copylib,copyexamples,copyseamgen,refdoc,extras">
<zip zipfile="${dist.location}/${dist.name}.zip">
<zipfileset prefix="${dist.name}" dir="${dist.dir}" />
</zip>
<tar tarfile="${dist.location}/${dist.name}.tar.gz" compression="gzip">
<tarfileset prefix="${dist.name}" dir="${dist.dir}" />
</tar>
</target>
<target name="dist" description="Build everything and package" depends="dist.classic" />
<!-- ########################## DOCUMENTATION TARGETS ##########################-->
<target name="javadoc" description="Compile the Javadoc API documentation to dist dir">
<mkdir dir="${dist.api.dir}" />
<javadoc classpathref="compile.core.path" destdir="${dist.api.dir}" use="true" protected="true" version="true" windowtitle="${Name} API Documentation" Overview="${doc.api.dir}/package.html" doctitle="${Name} API Documentation" stylesheetfile="${doc.api.dir}/jdstyle.css" link="${javadoc.link}">
<packageset dir="${src.core.dir}" defaultexcludes="yes">
<include name="org/jboss/seam/**" />
</packageset>
</javadoc>
<cdk target="javadoc:javadoc" />
<copy file="${doc.api.dir}/package.html" todir="${dist.api.dir}" />
<copy todir="${dist.ui.api.dir}">
<fileset dir="${ui.dir}/target/site">
<!--<include name="tlddoc/**"/>-->
<include name="apidocs/**" />
</fileset>
</copy>
</target>
<target name="refdoc" description="Generate and copy reference documentation">
<copy todir="${doc.ref.dir}/build">
<fileset dir="${doc.ref.dir}" />
</copy>
<replace dir="${doc.ref.dir}/build" token="@version@" value="${version}.${patchlevel}" />
<ant dir="${doc.ref.dir}/build" inheritall="false" target="all.doc" />
<copy todir="${dist.ref.dir}">
<fileset dir="${doc.ref.dir}/build/build" />
</copy>
<delete dir="${doc.ref.dir}/build" />
</target>
<!-- ########################### TEST TARGETS ###########################-->
<target name="inittestcore" depends="build">
<init classesdir="${classes.test.dir}" srcdir="${src.test.dir}" modulename="Tests" />
<copy todir="${classes.test.core.dir}">
<fileset dir="${classes.core.dir}" includes="**/*.*" />
</copy>
<path id="test.core.path">
<path path="${classes.test.core.dir}" />
<path path="${classes.coverage.core.dir}" />
<path path="${classes.test.dir}" />
<path refid="classpath.emma" />
<path refid="compile.core.path" />
<pathelement location="${basedir}/${name}-remoting.jar" />
</path>
</target>
<target name="compiletestcore" depends="inittestcore,select-compiler,antlr,jarremoting">
<compile classesdir="${classes.test.dir}" srcdir="${src.test.dir}" classpath="test.core.path" />
</target>
<target name="testcore" depends="inittestcore,compiletestcore" description="Run the core unit tests">
<taskdef resource="testngtasks" classpathref="test.core.path" />
<testng>
<jvmarg value="-Djava.awt.headless=true" />
<classpath refid="test.core.path" />
<xmlfileset dir="${src.test.dir}" includes="**/*.xml" />
</testng>
</target>
<target name="testreport" description="Create a pretty report">
<mkdir dir="${report.dir}" />
<junitreport todir="${report.dir}">
<fileset dir="${test.dir}">
<include name="**/*.xml" />
<exclude name="**/testng-*.xml" />
</fileset>
<report format="noframes" todir="${report.dir}" />
</junitreport>
<echo>Report available at ${report.dir}/junit-noframes.html</echo>
</target>
<target name="copytestoutput">
<mkdir dir="${report.dir}/tests" />
<copy todir="${report.dir}/tests">
<fileset dir="${test.dir}">
<include name="**/*.xml" />
<exclude name="**/testng-*.xml" />
</fileset>
<mapper type="flatten" />
</copy>
</target>
<target name="instrumentcore" depends="inittestcore">
<taskdef resource="emma_ant.properties" classpathref="classpath.emma" />
<mkdir dir="${classes.coverage.core.dir}" />
<mkdir dir="${coverage.dir}/core" />
<move todir="${classes.coverage.core.dir}">
<fileset dir="${classes.test.core.dir}" />
</move>
<emma>
<instr instrpath="${classes.coverage.core.dir}" mode="overwrite" metadatafile="${coverage.dir}/coveragecore.em">
<!-- Exclude packages we don't want coverage for -->
<filter excludes="org.jboss.seam.annotations.*" />
<filter excludes="org.jboss.seam.test.*" />
<filter excludes="*.package-info.java" />
<filter excludes="org.jboss.seam.text.*" />
</instr>
</emma>
</target>
<target name="coveragecore" depends="instrumentcore,testcore" description="Generate a test coverage report for the core tests">
<move file="${basedir}/coverage.ec" tofile="${coverage.dir}/coveragecore.ec" />
<emma>
<report sourcepath="${src.core.dir}" depth="method">
<infileset dir="${coverage.dir}" includes="coveragecore.em,coveragecore.ec" />
<html outfile="${report.dir}/coverage.html" />
<xml outfile="${report.dir}/coverage.xml" />
</report>
</emma>
<echo>Code coverage report for core classes available at ${report.dir}/coverage.html</echo>
</target>
<!-- ########################## MACRO DEFS ##########################-->
<macrodef name="init">
<attribute name="modulename" />
<attribute name="classesdir" />
<attribute name="srcdir" />
<attribute name="message" default="Build ${Name} @{modulename} ${version}" />
<sequential>
<echo message="@{message}" />
<mkdir dir="@{classesdir}" />
<copy todir="@{classesdir}">
<fileset dir="@{srcdir}">
<patternset refid="meta.files" />
</fileset>
</copy>
</sequential>
</macrodef>
<macrodef name="compile">
<attribute name="classesdir" />
<attribute name="srcdir" />
<attribute name="classpath" />
<element name="compile.classpath" optional="true" />
<sequential>
<javac source="1.5" target="1.5" destdir="@{classesdir}" debug="${javac.debug}" deprecation="${javac.deprecation}" nowarn="on" srcdir="@{srcdir}">
<classpath>
<path refid="@{classpath}" />
<compile.classpath />
</classpath>
</javac>
</sequential>
</macrodef>
<macrodef name="archive">
<attribute name="module" />
<attribute name="classesdir" />
<sequential>
<jar jarfile="${basedir}/@{module}.jar" basedir="@{classesdir}">
<include name="**/*.class" />
<exclude name="**/test/*.class" />
<patternset refid="meta.files" />
<manifest>
<attribute name="Seam-Version" value="${version}.${patchlevel}" />
<attribute name="Implementation-Version" value="${version}.${patchlevel}" />
</manifest>
</jar>
<mkdir dir="${dist.dir}" />
<copy file="${basedir}/@{module}.jar" todir="${dist.dir}" />
</sequential>
</macrodef>
<!-- Call out to maven to build Seam ui based on the cdk-->
<macrodef name="cdk">
<attribute name="target" />
<sequential>
<java classname="org.codehaus.classworlds.Launcher" fork="true" dir="${basedir}">
<classpath>
<fileset dir="${maven.dir}/core/boot">
<include name="*.jar" />
</fileset>
<fileset dir="${maven.dir}/bin">
<include name="*.*" />
</fileset>
</classpath>
<sysproperty key="classworlds.conf" value="${maven.dir}/bin/m2.conf" />
<sysproperty key="maven.home" value="${maven.dir}" />
<arg line="@{target}" />
</java>
</sequential>
</macrodef>
<macrodef name="copysource">
<attribute name="destdir" />
<attribute name="srcdir" />
<sequential>
<mkdir dir="@{destdir}" />
<copy todir="@{destdir}">
<fileset dir="@{srcdir}">
<patternset refid="src.files" />
</fileset>
<fileset dir="@{srcdir}">
<patternset refid="meta.files" />
</fileset>
</copy>
</sequential>
</macrodef>
<macrodef name="copylib">
<attribute name="fileset" />
<attribute name="versions" />
<sequential>
<copy todir="${dist.lib.dir}" verbose="on">
<fileset refid="@{fileset}">
<!-- Need to exclude jboss-seam-* -->
<!--<exclude name="**/jboss-seam*.jar" />-->
</fileset>
<mapper classpathref="maven-ant-tasks.classpath" classname="org.apache.maven.artifact.ant.VersionMapper" from="@{versions}" to="flatten" />
</copy>
</sequential>
</macrodef>
</project>
More information about the jboss-cvs-commits
mailing list