diff options
author | wisberg <wisberg> | 2005-05-21 21:48:38 +0000 |
---|---|---|
committer | wisberg <wisberg> | 2005-05-21 21:48:38 +0000 |
commit | b21623925556526987a9481a0e2319c0b32ed5c0 (patch) | |
tree | ba3bd16a23711fa4e79c8c5ad60889fdb513867f /build | |
parent | 46e11ec0f479cb79aea13fcb49bfcac50f89f904 (diff) | |
download | aspectj-b21623925556526987a9481a0e2319c0b32ed5c0.tar.gz aspectj-b21623925556526987a9481a0e2319c0b32ed5c0.zip |
conditional definition of junitreport
Diffstat (limited to 'build')
-rw-r--r-- | build/build-properties.xml | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/build/build-properties.xml b/build/build-properties.xml index 2c01763ea..2f4922b6d 100644 --- a/build/build-properties.xml +++ b/build/build-properties.xml @@ -98,6 +98,8 @@ location="${aspectj.modules.dir}/tests"/> <jar-property name="junit.jar" location="${aspectj.modules.lib.dir}/junit/junit.jar"/> + <property name="junit.includes" + value="**/*Test.java,**/**TestCase.java"/> </target> <target name="init-taskdefs" @@ -119,11 +121,23 @@ <taskdef name="junit" classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask" classpathref="ant.lib.path"/> + <available classname="org.apache.xalan.processor.TransformerFactoryImpl" + property="xalan.available" + value="true"> + <classpath refid="ant.lib.path"/> + </available> + <condition property="junitreport.available" value="true"> + <istrue value="${xalan.available}"/> + </condition> + <echo message="junitreport.available: ${junitreport.available}"/> + <antcall target="init-junitreport"/> + </target> + + <target name="init-junitreport" depends="init-properties" + if="xalan.available"> <taskdef name="junitreport" classname="org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator" classpathref="ant.lib.path"/> - - <property name="init-taskdefs.done" value="done"/> </target> <target name="init-directories" @@ -219,7 +233,9 @@ <attribute name="dir"/> <sequential> <mkdir dir="@{dir}"/> - <delete dir="@{dir}"/> + <delete> + <fileset dir="@{dir}" includes="*"/> + </delete> <mkdir dir="@{dir}"/> </sequential> </macrodef> |