From: Thomas D. <tdi...@us...> - 2005-04-08 18:57:12
|
User: tdiesler Date: 05/04/08 11:57:05 Modified: . Tag: Branch_4_0 build.xml Log: Clarify JSR-88 usage. Add JSR-88 test case. Revision Changes Path No revision No revision 1.406.2.53 +2754 -2700jbosstest/build.xml Index: build.xml =================================================================== RCS file: /cvsroot/jboss/jbosstest/build.xml,v retrieving revision 1.406.2.52 retrieving revision 1.406.2.53 diff -u -r1.406.2.52 -r1.406.2.53 --- build.xml 31 Mar 2005 20:38:38 -0000 1.406.2.52 +++ build.xml 8 Apr 2005 18:57:03 -0000 1.406.2.53 @@ -6,2764 +6,2818 @@ <!-- See terms of license at http://www.gnu.org. --> <!-- ============================================================ --> -<!-- $Id: build.xml,v 1.406.2.52 2005/03/31 20:38:38 clebert Exp $ --> +<!-- $Id: build.xml,v 1.406.2.53 2005/04/08 18:57:03 tdiesler Exp $ --> <project default="main" name="JBoss/Testsuite"> - <import file="../tools/etc/buildmagic/build-common.xml"/> - <import file="../tools/etc/buildmagic/libraries.xml"/> - <import file="../tools/etc/buildmagic/modules.xml"/> - - <!-- ======================================================== --> - <!-- Initialization --> - <!-- ======================================================== --> - <tstamp> - <format property="TIMENOW" pattern="yyyy-MM-dd.HH-mm" timezone="GMT"/> - </tstamp> - <echo message="${TIMENOW}" file="run.tstamp"/> - - <property name="results_web" value="http://jboss.sourceforge.net/junit-results/32"/> - <property name="buildlog.level" value="info"/> - - <!-- Set a hostname property based on COMPUTERNAME for win32, HOSTNAME - otherwise and initialize the node0/node1 cluster hostnames to localhost - and ${hostname} by default. If you cannot route multicast traffic between - localhost and hostname, then you need to specify node0 and node1 binding - in the local.properties that can in order to be able to run the clustering - tests. - --> - <condition property="hostname" value="${env.COMPUTERNAME}"> + <import file="../tools/etc/buildmagic/build-common.xml"/> + <import file="../tools/etc/buildmagic/libraries.xml"/> + <import file="../tools/etc/buildmagic/modules.xml"/> + + <!-- ======================================================== --> + <!-- Initialization --> + <!-- ======================================================== --> + <tstamp> + <format property="TIMENOW" pattern="yyyy-MM-dd.HH-mm" timezone="GMT"/> + </tstamp> + <echo message="${TIMENOW}" file="run.tstamp"/> + + <property name="results_web" value="http://jboss.sourceforge.net/junit-results/32"/> + <property name="buildlog.level" value="info"/> + + <!-- Set a hostname property based on COMPUTERNAME for win32, HOSTNAME + otherwise and initialize the node0/node1 cluster hostnames to localhost + and ${hostname} by default. If you cannot route multicast traffic between + localhost and hostname, then you need to specify node0 and node1 binding + in the local.properties that can in order to be able to run the clustering + tests. + --> + <condition property="hostname" value="${env.COMPUTERNAME}"> + <os family="windows"/> + </condition> + <condition property="hostname" value="${env.HOSTNAME}"> + <not> <os family="windows"/> - </condition> - <condition property="hostname" value="${env.HOSTNAME}"> - <not> - <os family="windows"/> - </not> - </condition> - - <!--We will use local.properties file to provide some configuration - to the testsuite mainly for the Clustering framework. Please - do not checkin your local.properties file into CVS--> - <property file="local.properties"/> - - <!-- Cluster node0 defaults --> - <property name="node0" value="localhost"/> - <property name="node0.http.url" value="http://${node0}:8080"/> - <property name="node0.jndi.url" value="jnp://${node0}:1099"/> - <!-- Cluster node1 defaults --> - <property name="node1" value="${hostname}"/> - <property name="node1.http.url" value="http://${node1}:8080"/> - <property name="node1.jndi.url" value="jnp://${node1}:1099"/> - - <!-- =================== --> - <!-- Basic Configuration --> - <!-- =================== --> - - <!-- Module name(s) & version --> - <property name="module.name" value="testsuite"/> - <property name="module.Name" value="JBoss Testsuite"/> - <property name="module.version" value="DEV"/> - - <!-- ========= --> - <!-- Libraries --> - <!-- ========= --> - <!-- The combined library classpath --> - <path id="library.classpath"> - <path refid="apache.avalon.classpath"/> - <path refid="apache.commons.classpath"/> - <path refid="apache.log4j.classpath"/> - <path refid="apache.xerces.classpath"/> - <path refid="apache.jaxme.classpath"/> - <path refid="wutka.dtdparser.classpath"/> - <path refid="dom4j.dom4j.classpath"/> - <path refid="oswego.concurrent.classpath"/> - <path refid="ibm.wsdl4j.classpath"/> - <path refid="jacorb.jacorb.classpath"/> - <path refid="jgroups.jgroups.classpath"/> - <path refid="junit.junit.classpath"/> - <path refid="junitejb.junitejb.classpath"/> - <path refid="javassist.classpath"/> - <path refid="sun.jaf.classpath"/> - <path refid="sun.javamail.classpath"/> - <path refid="sun.servlet.classpath"/> - <path refid="trove.classpath"/> + </not> + </condition> - <!-- needed for JBossMQ selector tests --> - <path refid="gnu.regexp.classpath"/> - - <!-- needed for proxy tests --> - <path refid="apache.bcel.classpath"/> - <!-- needed for security login module tests --> - <path refid="hsqldb.hsqldb.classpath"/> - - <!-- Need hibernate jar for hibernate-based tests --> - <path refid="hibernate2.classpath"/> - <path refid="odmg.classpath"/> - <path refid="cglib.classpath"/> - </path> - - <!-- ======= --> - <!-- Modules --> - <!-- ======= --> - <!-- InternalServer --> - <!-- This could be a mistake. Perhaps, though, it would be a good idea to separate - tests that need internal jboss classes from those that don't. When I put it in, only - the jca XATxConnectionManagerUnitTestCase needed an internal class (the tx manager)--> - <property name="jboss.internal-server.root" value="${project.root}/server/output"/> - <property name="jboss.internal-server.lib" value="${jboss.internal-server.root}/lib"/> - <path id="jboss.internal-server.classpath"> - <pathelement path="${jboss.server.lib}/jboss.jar"/> - <pathelement path="${jboss.server.lib}/jboss-system.jar"/> - </path> + <!--We will use local.properties file to provide some configuration + to the testsuite mainly for the Clustering framework. Please + do not checkin your local.properties file into CVS--> + <property file="local.properties"/> + + <!-- Cluster node0 defaults --> + <property name="node0" value="localhost"/> + <property name="node0.http.url" value="http://${node0}:8080"/> + <property name="node0.jndi.url" value="jnp://${node0}:1099"/> + <!-- Cluster node1 defaults --> + <property name="node1" value="${hostname}"/> + <property name="node1.http.url" value="http://${node1}:8080"/> + <property name="node1.jndi.url" value="jnp://${node1}:1099"/> + + <!-- =================== --> + <!-- Basic Configuration --> + <!-- =================== --> + + <!-- Module name(s) & version --> + <property name="module.name" value="testsuite"/> + <property name="module.Name" value="JBoss Testsuite"/> + <property name="module.version" value="DEV"/> + + <!-- ========= --> + <!-- Libraries --> + <!-- ========= --> + <!-- The combined library classpath --> + <path id="library.classpath"> + <path refid="apache.avalon.classpath"/> + <path refid="apache.commons.classpath"/> + <path refid="apache.log4j.classpath"/> + <path refid="apache.xerces.classpath"/> + <path refid="apache.jaxme.classpath"/> + <path refid="wutka.dtdparser.classpath"/> + <path refid="dom4j.dom4j.classpath"/> + <path refid="oswego.concurrent.classpath"/> + <path refid="ibm.wsdl4j.classpath"/> + <path refid="jacorb.jacorb.classpath"/> + <path refid="jgroups.jgroups.classpath"/> + <path refid="junit.junit.classpath"/> + <path refid="junitejb.junitejb.classpath"/> + <path refid="javassist.classpath"/> + <path refid="sun.jaf.classpath"/> + <path refid="sun.javamail.classpath"/> + <path refid="sun.servlet.classpath"/> + <path refid="trove.classpath"/> + + <!-- needed for JBossMQ selector tests --> + <path refid="gnu.regexp.classpath"/> + + <!-- needed for proxy tests --> + <path refid="apache.bcel.classpath"/> + <!-- needed for security login module tests --> + <path refid="hsqldb.hsqldb.classpath"/> + + <!-- Need hibernate jar for hibernate-based tests --> + <path refid="hibernate2.classpath"/> + <path refid="odmg.classpath"/> + <path refid="cglib.classpath"/> + </path> + + <!-- ======= --> + <!-- Modules --> + <!-- ======= --> + <!-- InternalServer --> + <!-- This could be a mistake. Perhaps, though, it would be a good idea to separate + tests that need internal jboss classes from those that don't. When I put it in, only + the jca XATxConnectionManagerUnitTestCase needed an internal class (the tx manager)--> + <property name="jboss.internal-server.root" value="${project.root}/server/output"/> + <property name="jboss.internal-server.lib" value="${jboss.internal-server.root}/lib"/> + <path id="jboss.internal-server.classpath"> + <pathelement path="${jboss.server.lib}/jboss.jar"/> + <pathelement path="${jboss.server.lib}/jboss-system.jar"/> + </path> + + <!-- The combined dependant module classpath --> + <path id="dependentmodule.classpath"> + <path refid="jboss.aop.classpath"/> + <path refid="jboss.aspects.classpath"/> + <path refid="jboss.cache.classpath"/> + <path refid="jboss.cluster.classpath"/> + <path refid="jboss.common.classpath"/> + <path refid="jboss.deployment.classpath"/> + <path refid="jboss.hibernate.classpath"/> + <path refid="jboss.iiop.classpath"/> + <path refid="jboss.internal-server.classpath"/> + <path refid="jboss.j2ee.classpath"/> + <path refid="jboss.jaxrpc.classpath"/> + <path refid="jboss.jbossnet.classpath"/> + <path refid="jboss.jca.classpath"/> + <path refid="jboss.jmx.classpath"/> + <path refid="jboss.management.classpath"/> + <path refid="jboss.media.classpath"/> + <path refid="jboss.messaging.classpath"/> + <path refid="jboss.naming.classpath"/> + <path refid="jboss.remoting.classpath"/> + <path refid="jboss.security.classpath"/> + <path refid="jboss.server.classpath"/> + <path refid="jboss.system.classpath"/> + <path refid="jboss.transaction.classpath"/> + <path refid="jboss.varia.classpath"/> + <path refid="jboss.webservice.classpath"/> + </path> + + <!-- RMI Stub generation --> + <patternset id="rmic.includes" + description="The patternset passed to the compile-stubs target"> + <include name="org/jboss/test/cluster/test/DistributedStateTestCase$TestListener.class"/> + <include name="org/jboss/test/cluster/test/DRMTestCase$TestListener.class"/> + <include name="org/jboss/test/cts/test/ClientCallbackImpl.class"/> + <include name="org/jboss/test/jmx/invoker/BadListener.class"/> + <include name="org/jboss/test/jmx/invoker/Listener.class"/> + </patternset> + + <!-- ===== --> + <!-- Tasks --> + <!-- ===== --> + + <!-- Where source files live --> + <property name="source.java" value="${module.source}/main"/> + <property name="source.etc" value="${module.source}/etc"/> + <property name="source.docs" value="${module.source}/docs"/> + <property name="source.resources" value="${module.source}/resources"/> + <property name="source.stylesheets" value="${module.source}/stylesheets"/> + + <!-- Where build generated files will go --> + <property name="build.classes" value="${module.output}/classes"/> + <property name="build.lib" value="${module.output}/lib"/> + <property name="build.api" value="${module.output}/api"/> + <property name="build.etc" value="${module.output}/etc"/> + <property name="build.docs" value="${module.output}/docs"/> + <property name="build.resources" value="${module.output}/resources"/> + <property name="build.stylesheets" value="${module.output}/stylesheets"/> + <property name="build.reports" value="${module.output}/reports"/> + <property name="build.testlog" value="${module.output}/log"/> + + <!--xdoclet output directories--> + <property name="build.gen-src" value="${module.output}/gen-src/"/> + <!-- put ejb-jar.xml and other resources into build.resources--> + + <!-- Install/Release structure --> + <property name="install.id" value="${module.name}-${module.version}"/> + <property name="release.id" value="${install.id}"/> + <property name="install.root" value="${module.output}/${install.id}"/> + + <!-- The combined thirdparty classpath --> + <path id="thirdparty.classpath"> + <path refid="library.classpath"/> + <path refid="dependentmodule.classpath"/> + </path> + + <path id="javac.classpath"> + <path refid="thirdparty.classpath"/> + </path> + + <!-- classpath and local.classpath must have a value using with a path --> + <property name="classpath" value=""/> + <property name="local.classpath" value=""/> + + <!-- Classpath to build and run the tests --> + <path id="tests.classpath"> + <pathelement path="${classpath}"/> + <pathelement path="${local.classpath}"/> + <pathelement path="${project.tools}/lib/ant.jar"/> + <pathelement path="${project.tools}/lib/optional.jar"/> + <path refid="jboss.jmx.classpath"/> + <path refid="thirdparty.classpath"/> + </path> + + <!-- The classpath required to build javadocs. --> + <path id="javadoc.classpath"> + <path refid="tests.classpath"/> + </path> + + <!-- Packages to include when generating api documentation --> + <property name="javadoc.packages" value="org.jboss.*"/> + + <!-- Override JUnit defaults --> + <property name="junit.timeout" value="180000"/> <!-- 3 minutes --> + <property name="jbosstest.iterationcount" value="10"/> + <property name="jbosstest.threadcount" value="5"/> + <property name="jbosstest.beancount" value="5"/> + <property name="jbosstest.nodeploy" value="false"/> + <property name="jbosstest.src.etc" value="${source.etc}"/> + <property name="jbosstest.dist" value="${jboss.dist}"/> + <property name="junit.batchtest.todir" value="${build.reports}"/> + <property name="junit.jvm.options" value="-Ddummy"/> + <!-- Override JUnit Marathon defaults --> + <property name="marathon.timeout" value="3900000"/> <!-- 65 minutes --> + <property name="marathon.duration" value="3600000"/> <!-- 60 minutes --> + <property name="marathon.threadcount" value="100"/> + + <!-- xdoclet --> + <path id="xdoclet.task.classpath"> + <path refid="tests.classpath"/> + <fileset dir="${project.thirdparty}/xdoclet-xdoclet/lib"> + <include name="**/*.jar"/> + </fileset> + </path> + <property name="xdoclet.task.classpath" refid="xdoclet.task.classpath"/> + + <property name="xdoclet.mergedir" value="${project.tools}/etc/xdoclet/templates}"/> + + <target name="init"> + <record name="${basedir}/build.log" append="yes" action="start" loglevel="error"/> + <!-- Setup the version 1 classes so the tests compile --> + <mkdir dir="${build.gen-src}/org/jboss/test/cts/interfaces"/> + <copy tofile="${build.gen-src}/org/jboss/test/cts/interfaces/CtsCmp2Local.java" + file="${source.java}/org/jboss/test/cts/interfaces/CtsCmp2Local_V1.txt" + overwrite="false"/> + <mkdir dir="${build.gen-src}/org/jboss/test/classloader/scoping/singleton"/> + <copy tofile="${build.gen-src}/org/jboss/test/classloader/scoping/singleton/MySingleton.java" + file="${source.java}/org/jboss/test/classloader/scoping/singleton/MySingleton_V1.txt" + overwrite="false"/> + </target> + + <!-- ================================================================== --> + <!-- Compile --> + <!-- ================================================================== --> + <import file="imports/code-generation.xml"/> + + <!-- + | Compile everything. + | + | This target should depend on other compile-* targets for each + | different type of compile that needs to be performed, short of + | documentation compiles. + --> + <target name="compile" + depends="init, compile-classes, compile-xmbean-dds, compile-stubs, compile-etc, compile-stylesheets, compile-resources" + description="Compile all source files."/> + + <!-- Compile all class files --> + <target name="compile-classes" depends="compile-bean-sources, compile-mbean-sources, compile-proxycompiler-bean-sources, compile-classes-only"> + </target> + + <target name="compile-classes-only"> + <mkdir dir="${build.classes}"/> + <javac destdir="${build.classes}" + optimize="${javac.optimize}" + source="${javac.source}" + target="${javac.target}" + debug="${javac.debug}" + depend="${javac.depend}" + verbose="${javac.verbose}" + deprecation="${javac.deprecation}" + includeAntRuntime="${javac.include.ant.runtime}" + includeJavaRuntime="${javac.include.java.runtime}" + failonerror="${javac.fail.onerror}"> + <src path="${source.java}"/> + <src path="${build.gen-src}"/> + <classpath refid="tests.classpath"/> + </javac> + </target> + + <target name="compile-stubs"> + <rmic base="${build.classes}" + sourcebase="${build.classes}" + verify="${rmic.verify}" + iiop="${rmic.iiop}" + iiopopts="${rmic.iiopopts}" + idl="${rmic.idl}" + idlopts="${rmic.idlops}" + debug="${rmic.debug}" + stubVersion="${rmic.stubVersion}" + > + <classpath refid="tests.classpath"/> + <patternset refid="rmic.includes"/> + </rmic> + </target> + + <!-- Compile resource files --> + <target name="compile-resources"> + <mkdir dir="${build.resources}"/> + <copy todir="${build.resources}" filtering="no"> + <fileset dir="${source.resources}"> + <include name="**/*"/> + </fileset> + </copy> + </target> - <!-- The combined dependant module classpath --> - <path id="dependentmodule.classpath"> - <path refid="jboss.aop.classpath"/> - <path refid="jboss.aspects.classpath"/> - <path refid="jboss.cache.classpath"/> - <path refid="jboss.cluster.classpath"/> - <path refid="jboss.common.classpath"/> - <path refid="jboss.hibernate.classpath"/> - <path refid="jboss.iiop.classpath"/> - <path refid="jboss.internal-server.classpath"/> - <path refid="jboss.j2ee.classpath"/> - <path refid="jboss.jaxrpc.classpath"/> - <path refid="jboss.jbossnet.classpath"/> - <path refid="jboss.jca.classpath"/> - <path refid="jboss.jmx.classpath"/> - <path refid="jboss.management.classpath"/> - <path refid="jboss.media.classpath"/> - <path refid="jboss.messaging.classpath"/> - <path refid="jboss.naming.classpath"/> - <path refid="jboss.remoting.classpath"/> - <path refid="jboss.security.classpath"/> - <path refid="jboss.server.classpath"/> - <path refid="jboss.system.classpath"/> - <path refid="jboss.transaction.classpath"/> - <path refid="jboss.varia.classpath"/> - <path refid="jboss.webservice.classpath"/> - </path> - - <!-- RMI Stub generation --> - <patternset id="rmic.includes" - description="The patternset passed to the compile-stubs target"> - <include name="org/jboss/test/cluster/test/DistributedStateTestCase$TestListener.class"/> - <include name="org/jboss/test/cluster/test/DRMTestCase$TestListener.class"/> - <include name="org/jboss/test/cts/test/ClientCallbackImpl.class"/> - <include name="org/jboss/test/jmx/invoker/BadListener.class"/> - <include name="org/jboss/test/jmx/invoker/Listener.class"/> - </patternset> - - <!-- ===== --> - <!-- Tasks --> - <!-- ===== --> - - <!-- Where source files live --> - <property name="source.java" value="${module.source}/main"/> - <property name="source.etc" value="${module.source}/etc"/> - <property name="source.docs" value="${module.source}/docs"/> - <property name="source.resources" value="${module.source}/resources"/> - <property name="source.stylesheets" value="${module.source}/stylesheets"/> - - <!-- Where build generated files will go --> - <property name="build.classes" value="${module.output}/classes"/> - <property name="build.lib" value="${module.output}/lib"/> - <property name="build.api" value="${module.output}/api"/> - <property name="build.etc" value="${module.output}/etc"/> - <property name="build.docs" value="${module.output}/docs"/> - <property name="build.resources" value="${module.output}/resources"/> - <property name="build.stylesheets" value="${module.output}/stylesheets"/> - <property name="build.reports" value="${module.output}/reports"/> - <property name="build.testlog" value="${module.output}/log"/> - - <!--xdoclet output directories--> - <property name="build.gen-src" value="${module.output}/gen-src/"/> - <!-- put ejb-jar.xml and other resources into build.resources--> - - <!-- Install/Release structure --> - <property name="install.id" value="${module.name}-${module.version}"/> - <property name="release.id" value="${install.id}"/> - <property name="install.root" value="${module.output}/${install.id}"/> - - <!-- The combined thirdparty classpath --> - <path id="thirdparty.classpath"> - <path refid="library.classpath"/> - <path refid="dependentmodule.classpath"/> - </path> - - <path id="javac.classpath"> - <path refid="thirdparty.classpath"/> - </path> - - <!-- classpath and local.classpath must have a value using with a path --> - <property name="classpath" value=""/> - <property name="local.classpath" value=""/> - - <!-- Classpath to build and run the tests --> - <path id="tests.classpath"> - <pathelement path="${classpath}"/> - <pathelement path="${local.classpath}"/> - <pathelement path="${project.tools}/lib/ant.jar"/> - <pathelement path="${project.tools}/lib/optional.jar"/> - <path refid="jboss.jmx.classpath"/> - <path refid="thirdparty.classpath"/> - </path> - - <!-- The classpath required to build javadocs. --> - <path id="javadoc.classpath"> - <path refid="tests.classpath"/> - </path> - - <!-- Packages to include when generating api documentation --> - <property name="javadoc.packages" value="org.jboss.*"/> - - <!-- Override JUnit defaults --> - <property name="junit.timeout" value="180000"/> <!-- 3 minutes --> - <property name="jbosstest.iterationcount" value="10"/> - <property name="jbosstest.threadcount" value="5"/> - <property name="jbosstest.beancount" value="5"/> - <property name="jbosstest.nodeploy" value="false"/> - <property name="jbosstest.src.etc" value="${source.etc}"/> - <property name="jbosstest.dist" value="${jboss.dist}"/> - <property name="junit.batchtest.todir" value="${build.reports}"/> - <property name="junit.jvm.options" value="-Ddummy"/> - <!-- Override JUnit Marathon defaults --> - <property name="marathon.timeout" value="3900000"/> <!-- 65 minutes --> - <property name="marathon.duration" value="3600000"/> <!-- 60 minutes --> - <property name="marathon.threadcount" value="100"/> - - <!-- xdoclet --> - <path id="xdoclet.task.classpath"> - <path refid="tests.classpath"/> - <fileset dir="${project.thirdparty}/xdoclet-xdoclet/lib"> - <include name="**/*.jar"/> + <!-- Compile stylesheets files --> + <target name="compile-stylesheets"> + <mkdir dir="${build.stylesheets}"/> + <copy todir="${build.stylesheets}" filtering="yes"> + <fileset dir="${source.stylesheets}"> + <include name="**/*"/> </fileset> - </path> - <property name="xdoclet.task.classpath" refid="xdoclet.task.classpath"/> + </copy> + </target> - <property name="xdoclet.mergedir" value="${project.tools}/etc/xdoclet/templates}"/> + <!-- Compile etc files (manifests and such) --> + <target name="compile-etc"> + <mkdir dir="${build.etc}"/> + <copy todir="${build.etc}" filtering="yes"> + <fileset dir="${source.etc}"> + <include name="**/*"/> + </fileset> + </copy> + </target> - <target name="init"> - <record name="${basedir}/build.log" append="yes" action="start" loglevel="error"/> - <!-- Setup the version 1 classes so the tests compile --> - <mkdir dir="${build.gen-src}/org/jboss/test/cts/interfaces"/> - <copy tofile="${build.gen-src}/org/jboss/test/cts/interfaces/CtsCmp2Local.java" - file="${source.java}/org/jboss/test/cts/interfaces/CtsCmp2Local_V1.txt" - overwrite="false"/> - <mkdir dir="${build.gen-src}/org/jboss/test/classloader/scoping/singleton"/> - <copy tofile="${build.gen-src}/org/jboss/test/classloader/scoping/singleton/MySingleton.java" - file="${source.java}/org/jboss/test/classloader/scoping/singleton/MySingleton_V1.txt" - overwrite="false"/> - </target> - - <!-- ================================================================== --> - <!-- Compile --> - <!-- ================================================================== --> - <import file="imports/code-generation.xml"/> - - <!-- - | Compile everything. - | - | This target should depend on other compile-* targets for each - | different type of compile that needs to be performed, short of - | documentation compiles. - --> - <target name="compile" - depends="init, compile-classes, compile-xmbean-dds, compile-stubs, compile-etc, compile-stylesheets, compile-resources" - description="Compile all source files."/> - - <!-- Compile all class files --> - <target name="compile-classes" depends="compile-bean-sources, compile-mbean-sources, compile-proxycompiler-bean-sources, compile-classes-only"> - </target> - - <target name="compile-classes-only"> - <mkdir dir="${build.classes}"/> - <javac destdir="${build.classes}" - optimize="${javac.optimize}" - source="${javac.source}" - target="${javac.target}" - debug="${javac.debug}" - depend="${javac.depend}" - verbose="${javac.verbose}" - deprecation="${javac.deprecation}" - includeAntRuntime="${javac.include.ant.runtime}" - includeJavaRuntime="${javac.include.java.runtime}" - failonerror="${javac.fail.onerror}"> - <src path="${source.java}"/> - <src path="${build.gen-src}"/> - <classpath refid="tests.classpath"/> - </javac> - </target> - - <target name="compile-stubs"> - <rmic base="${build.classes}" - sourcebase="${build.classes}" - verify="${rmic.verify}" - iiop="${rmic.iiop}" - iiopopts="${rmic.iiopopts}" - idl="${rmic.idl}" - idlopts="${rmic.idlops}" - debug="${rmic.debug}" - stubVersion="${rmic.stubVersion}" - > - <classpath refid="tests.classpath"/> - <patternset refid="rmic.includes"/> - </rmic> - </target> - - <!-- Compile resource files --> - <target name="compile-resources"> - <mkdir dir="${build.resources}"/> - <copy todir="${build.resources}" filtering="no"> - <fileset dir="${source.resources}"> - <include name="**/*"/> - </fileset> - </copy> - </target> - - <!-- Compile stylesheets files --> - <target name="compile-stylesheets"> - <mkdir dir="${build.stylesheets}"/> - <copy todir="${build.stylesheets}" filtering="yes"> - <fileset dir="${source.stylesheets}"> - <include name="**/*"/> - </fileset> - </copy> - </target> - - <!-- Compile etc files (manifests and such) --> - <target name="compile-etc"> - <mkdir dir="${build.etc}"/> - <copy todir="${build.etc}" filtering="yes"> - <fileset dir="${source.etc}"> - <include name="**/*"/> - </fileset> - </copy> - </target> - - - <!-- Import the test jars build targets --> - <import file="imports/test-jars.xml"/> - - <!-- Import the jboss server run targets --> - <import file="imports/server-config.xml"/> - - <!-- ================================================================== --> - <!-- Cleaning --> - <!-- ================================================================== --> - - <!-- Clean up all build outp... [truncated message content] |
From: Scott M S. <st...@us...> - 2005-04-08 18:59:12
|
User: starksm Date: 05/04/08 11:59:07 Modified: . Tag: Branch_4_0 build.xml Log: The jbosstest.dist property cannot be set until after the server-config.xml has been imported. Revision Changes Path No revision No revision 1.406.2.54 +3 -1 jbosstest/build.xml Index: build.xml =================================================================== RCS file: /cvsroot/jboss/jbosstest/build.xml,v retrieving revision 1.406.2.53 retrieving revision 1.406.2.54 diff -u -r1.406.2.53 -r1.406.2.54 --- build.xml 8 Apr 2005 18:57:03 -0000 1.406.2.53 +++ build.xml 8 Apr 2005 18:58:49 -0000 1.406.2.54 @@ -6,7 +6,7 @@ <!-- See terms of license at http://www.gnu.org. --> <!-- ============================================================ --> -<!-- $Id: build.xml,v 1.406.2.53 2005/04/08 18:57:03 tdiesler Exp $ --> +<!-- $Id: build.xml,v 1.406.2.54 2005/04/08 18:58:49 starksm Exp $ --> <project default="main" name="JBoss/Testsuite"> <import file="../tools/etc/buildmagic/build-common.xml"/> @@ -347,6 +347,8 @@ <!-- Import the jboss server run targets --> <import file="imports/server-config.xml"/> + <!-- Propagate the dist directory as a jbosstest system property --> + <property name="jbosstest.dist" value="${jboss.dist}"/> <!-- ================================================================== --> <!-- Cleaning --> |
From: Scott M S. <st...@us...> - 2005-04-11 04:58:12
|
User: starksm Date: 05/04/10 21:58:05 Modified: . Tag: Branch_4_0 build.xml Log: Run the tests-compatibility target with MaxPermSize of 96m due to the number of loaded classes. Revision Changes Path No revision No revision 1.406.2.55 +12 -5 jbosstest/build.xml Index: build.xml =================================================================== RCS file: /cvsroot/jboss/jbosstest/build.xml,v retrieving revision 1.406.2.54 retrieving revision 1.406.2.55 diff -u -r1.406.2.54 -r1.406.2.55 --- build.xml 8 Apr 2005 18:58:49 -0000 1.406.2.54 +++ build.xml 11 Apr 2005 04:58:04 -0000 1.406.2.55 @@ -6,7 +6,7 @@ <!-- See terms of license at http://www.gnu.org. --> <!-- ============================================================ --> -<!-- $Id: build.xml,v 1.406.2.54 2005/04/08 18:58:49 starksm Exp $ --> +<!-- $Id: build.xml,v 1.406.2.55 2005/04/11 04:58:04 starksm Exp $ --> <project default="main" name="JBoss/Testsuite"> <import file="../tools/etc/buildmagic/build-common.xml"/> @@ -224,7 +224,6 @@ <property name="jbosstest.beancount" value="5"/> <property name="jbosstest.nodeploy" value="false"/> <property name="jbosstest.src.etc" value="${source.etc}"/> - <property name="jbosstest.dist" value="${jboss.dist}"/> <property name="junit.batchtest.todir" value="${build.reports}"/> <property name="junit.jvm.options" value="-Ddummy"/> <!-- Override JUnit Marathon defaults --> @@ -522,6 +521,13 @@ <patternset id="deployment-service.excludes"> <exclude name="org/jboss/test/deployment/test/*TestCase.class"/> </patternset> + <!-- The compatibility tests need extra memory --> + <patternset id="compatibility.includes"> + <include name="org/jboss/test/compatibility/test/*TestCase.class"/> + </patternset> + <patternset id="compatibility.excludes"> + <exclude name="org/jboss/test/compatibility/test/*TestCase.class"/> + </patternset> <!-- Tests that are currently broken --> <patternset id="badtest.excludes"> @@ -547,6 +553,7 @@ <patternset refid="jbossnet.excludes"/> <patternset refid="jbossxb.excludes"/> <patternset refid="deployment-service.excludes"/> + <patternset refid="compatibility.excludes"/> </patternset> <!-- A target that allows for conditional dependency on the compilation and @@ -1659,9 +1666,9 @@ jvm="${junit.jvm}"> <jvmarg value="${junit.jvm.options}"/> + <jvmarg value="-XX:MaxPermSize=96m"/> + <jvmarg value="-Xmx196m"/> <sysproperty key="jboss.dist" file="${jboss.dist}"/> - - <jvmarg value="-Djava.system.class.loader=org.jboss.aop.standalone.SystemClassLoader"/> <sysproperty key="jbosstest.deploy.dir" file="${build.lib}"/> <sysproperty key="build.testlog" value="${build.testlog}"/> <sysproperty key="log4j.configuration" value="file:${build.resources}/log4j.xml"/> @@ -1685,7 +1692,7 @@ fork="${junit.batchtest.fork}"> <fileset dir="${build.classes}"> - <include name="org/jboss/test/compatibility/test/*JarTest.class"/> + <patternset refid="compatibility.includes"/> </fileset> </batchtest> </junit> |
From: Scott M S. <st...@us...> - 2005-04-12 16:25:05
|
User: starksm Date: 05/04/12 09:24:58 Modified: . Tag: Branch_4_0 build.xml Log: Run the tests-compatibility with a minimal classpath and large MaxPermSize to ensure that the unit tests load the target classes through a seperate class loader and that there is enough room for all the classes loaded. Revision Changes Path No revision No revision 1.406.2.56 +9 -6 jbosstest/build.xml Index: build.xml =================================================================== RCS file: /cvsroot/jboss/jbosstest/build.xml,v retrieving revision 1.406.2.55 retrieving revision 1.406.2.56 diff -u -r1.406.2.55 -r1.406.2.56 --- build.xml 11 Apr 2005 04:58:04 -0000 1.406.2.55 +++ build.xml 12 Apr 2005 16:24:36 -0000 1.406.2.56 @@ -6,7 +6,7 @@ <!-- See terms of license at http://www.gnu.org. --> <!-- ============================================================ --> -<!-- $Id: build.xml,v 1.406.2.55 2005/04/11 04:58:04 starksm Exp $ --> +<!-- $Id: build.xml,v 1.406.2.56 2005/04/12 16:24:36 starksm Exp $ --> <project default="main" name="JBoss/Testsuite"> <import file="../tools/etc/buildmagic/build-common.xml"/> @@ -1661,12 +1661,12 @@ printsummary="${junit.printsummary}" haltonerror="${junit.haltonerror}" haltonfailure="${junit.haltonfailure}" - fork="${junit.fork}" + fork="true" timeout="${junit.timeout}" jvm="${junit.jvm}"> <jvmarg value="${junit.jvm.options}"/> - <jvmarg value="-XX:MaxPermSize=96m"/> + <jvmarg value="-XX:MaxPermSize=128m"/> <jvmarg value="-Xmx196m"/> <sysproperty key="jboss.dist" file="${jboss.dist}"/> <sysproperty key="jbosstest.deploy.dir" file="${build.lib}"/> @@ -1678,10 +1678,13 @@ <propertyref prefix="jbosstest."/> </syspropertyset> + <!-- This runs with a minimal classpath as the jboss classes need to + be loaded in a seperate class loader. + --> <classpath> - <pathelement location="${build.classes}"/> - <pathelement location="${build.resources}"/> - <path refid="tests.classpath"/> + <pathelement location="${build.classes}" /> + <pathelement location="${build.resources}" /> + <path refid="jboss.varia.classpath"/> </classpath> <formatter type="xml" usefile="${junit.formatter.usefile}"/> |
From: Jason T. G. <nih...@us...> - 2005-04-12 19:50:06
|
User: nihility Date: 05/04/12 12:49:52 Modified: . build.xml Log: Add test target and tests for StAX Revision Changes Path 1.450 +46 -1 jbosstest/build.xml Index: build.xml =================================================================== RCS file: /cvsroot/jboss/jbosstest/build.xml,v retrieving revision 1.449 retrieving revision 1.450 diff -u -r1.449 -r1.450 --- build.xml 4 Apr 2005 23:41:16 -0000 1.449 +++ build.xml 12 Apr 2005 19:49:47 -0000 1.450 @@ -6,7 +6,7 @@ <!-- See terms of license at http://www.gnu.org. --> <!-- ============================================================ --> -<!-- $Id: build.xml,v 1.449 2005/04/04 23:41:16 ejort Exp $ --> +<!-- $Id: build.xml,v 1.450 2005/04/12 19:49:47 nihility Exp $ --> <project default="main" name="JBoss/Testsuite"> <import file="../tools/etc/buildmagic/build-common.xml"/> @@ -87,6 +87,7 @@ <path refid="sun.servlet.classpath"/> <path refid="trove.classpath"/> <path refid="wutka.dtdparser.classpath"/> + <path refid="codehaus.stax.classpath"/> <!-- needed for JBossMQ selector tests --> <path refid="gnu.regexp.classpath"/> @@ -526,6 +527,9 @@ <patternset id="jaxr.includes"> <include name="org/jboss/test/jaxr/scout/**/*TestCase.class"/> </patternset> + <patternset id="stax.include"> + <include name="org/jboss/test/stax/**/*TestCase.class"/> + </patternset> <!-- Tests needing deployment service setup --> <patternset id="deployment-service.includes"> <include name="org/jboss/test/deployment/test/*TestCase.class"/> @@ -1904,6 +1908,47 @@ </junit> </target> + <!-- Test StAX JAS-173 --> + <target name="tests-stax" depends="maybejars"> + <mkdir dir="${build.reports}"/> + <mkdir dir="${build.testlog}"/> + <junit dir="${module.output}" + printsummary="${junit.printsummary}" + haltonerror="${junit.haltonerror}" + haltonfailure="${junit.haltonfailure}" + fork="${junit.fork}" + timeout="${junit.timeout}" + jvm="${junit.jvm}"> + + <jvmarg value="${junit.jvm.options}"/> + <sysproperty key="jbosstest.deploy.dir" file="${build.lib}"/> + <sysproperty key="build.testlog" value="${build.testlog}"/> + <sysproperty key="log4j.configuration" value="file:${build.resources}/log4j.xml"/> + <!-- Pass along any jbosstest.* system properties --> + <syspropertyset> + <propertyref prefix="jbosstest."/> + </syspropertyset> + + <classpath> + <pathelement location="${build.classes}"/> + <pathelement location="${build.resources}"/> + <path refid="tests.classpath"/> + </classpath> + + <formatter type="xml" usefile="${junit.formatter.usefile}"/> + + <batchtest todir="${build.reports}" + haltonerror="${junit.batchtest.haltonerror}" + haltonfailure="${junit.batchtest.haltonfailure}" + fork="${junit.batchtest.fork}"> + + <fileset dir="${build.classes}"> + <patternset refid="stax.includes"/> + </fileset> + </batchtest> + </junit> + </target> + <!-- Run the Web Services Tests--> <target name="tests-webservice" description="Execute Web Services Related Tests"> |
From: Anil S. <osd...@us...> - 2005-04-13 06:01:40
|
User: osdchicago Date: 05/04/12 23:01:31 Modified: . Tag: Branch_4_0 build.xml Log: Add some system properties to be passed to the Scout/Jaxr tests Revision Changes Path No revision No revision 1.406.2.57 +3 -1 jbosstest/build.xml Index: build.xml =================================================================== RCS file: /cvsroot/jboss/jbosstest/build.xml,v retrieving revision 1.406.2.56 retrieving revision 1.406.2.57 diff -u -r1.406.2.56 -r1.406.2.57 --- build.xml 12 Apr 2005 16:24:36 -0000 1.406.2.56 +++ build.xml 13 Apr 2005 06:01:28 -0000 1.406.2.57 @@ -6,7 +6,7 @@ <!-- See terms of license at http://www.gnu.org. --> <!-- ============================================================ --> -<!-- $Id: build.xml,v 1.406.2.56 2005/04/12 16:24:36 starksm Exp $ --> +<!-- $Id: build.xml,v 1.406.2.57 2005/04/13 06:01:28 osdchicago Exp $ --> <project default="main" name="JBoss/Testsuite"> <import file="../tools/etc/buildmagic/build-common.xml"/> @@ -2304,6 +2304,8 @@ value="http://localhost:8080/juddi/publish"/> <sysproperty key="juddi.proxy.transportClass" value="org.jboss.jaxr.juddi.axis.JBossJuddiAxisTransport"/> + <sysproperty key="host.name" value="localhost"/> + <sysproperty key="jndi.bind.name" value="JAXR"/> <!-- Pass along any jbosstest.* system properties --> <syspropertyset> <propertyref prefix="jbosstest."/> |