|
From: Bill B. <pat...@us...> - 2004-02-04 02:23:20
|
User: patriot1burke
Date: 04/02/03 18:21:05
Modified: . build.xml
Log:
added precompiler support including an ANT task to do the precompilation. See testsuite for an example
<aopc>
Added standalone unit test that uses precompiler.
Revision Changes Path
1.331 +52 -1 jbosstest/build.xml
Index: build.xml
===================================================================
RCS file: /cvsroot/jboss/jbosstest/build.xml,v
retrieving revision 1.330
retrieving revision 1.331
diff -u -r1.330 -r1.331
--- build.xml 3 Feb 2004 16:57:50 -0000 1.330
+++ build.xml 4 Feb 2004 02:21:04 -0000 1.331
@@ -15,7 +15,7 @@
<!-- -->
<!-- ====================================================================== -->
-<!-- $Id: build.xml,v 1.330 2004/02/03 16:57:50 ejort Exp $ -->
+<!-- $Id: build.xml,v 1.331 2004/02/04 02:21:04 patriot1burke Exp $ -->
<project default="main" name="JBoss/Testsuite">
@@ -4842,6 +4842,21 @@
<include name="META-INF/jboss-service.xml"/>
</fileset>
</jar>
+ <!-- ok, we have created the loadtime jars, let us now precompile the classes for standalone test -->
+ <taskdef name="aopc" classname="org.jboss.aop.ant.AopC" classpathref="jboss.aop.classpath"/>
+ <path id="aop.task.classpath">
+ <path refid="javassist.classpath"/>
+ <path refid="trove.classpath"/>
+ <path refid="jboss.aop.classpath"/>
+ <path refid="jboss.common.classpath"/>
+ </path>
+ <aopc compilerclasspathref="aop.task.classpath">
+ <classpath refid="thirdparty.classpath"/>
+ <classpath path="${build.classes}"/>
+ <src path="${build.classes}"/>
+ <include name="org/jboss/test/aop/bean/**"/>
+ <aoppath path="${source.resources}/aop/META-INF/jboss-aop.xml"/>
+ </aopc>
</target>
@@ -5302,6 +5317,7 @@
<target name="tests-standalone-aop-unit" depends="compile">
<antcall target="tests-treecacheaop-unit" inheritRefs="true"/>
+ <antcall target="tests-baseaop-unit" inheritRefs="true"/>
</target>
<target name="tests-treecacheaop-unit" depends="init">
@@ -5340,6 +5356,41 @@
</junit>
</target>
+ <target name="test-baseaop-unit" depends="init">
+ <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}">
+
+ <sysproperty key="jboss.aop.path" file="${source.resources}/aop/META-INF/jboss-aop.xml"/>
+ <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"/>
+
+ <classpath>
+ <pathelement location="${build.classes}"/>
+ <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}">
+ <include name="org/jboss/test/aop/nonjunit/StandaloneTest.class"/>
+ </fileset>
+ </batchtest>
+ </junit>
+ </target>
+
<!--
| Tests that need to be run by loading the testcase code from a client
|