diff options
author | wisberg <wisberg> | 2005-05-11 08:57:22 +0000 |
---|---|---|
committer | wisberg <wisberg> | 2005-05-11 08:57:22 +0000 |
commit | c5e94c52b385015a160f2cfd683f1889019e08c0 (patch) | |
tree | c585af9755ad4b2016a8c9cc5a448ea989ea1129 /build/build-properties.xml | |
parent | 7cc6f4e9014c71d9fe5e677a8fb5200bd7482936 (diff) | |
download | aspectj-c5e94c52b385015a160f2cfd683f1889019e08c0.tar.gz aspectj-c5e94c52b385015a160f2cfd683f1889019e08c0.zip |
Ant 1.6.3 imports rather than entities; updated junit taskdef
Diffstat (limited to 'build/build-properties.xml')
-rw-r--r-- | build/build-properties.xml | 62 |
1 files changed, 50 insertions, 12 deletions
diff --git a/build/build-properties.xml b/build/build-properties.xml index 979408812..2c01763ea 100644 --- a/build/build-properties.xml +++ b/build/build-properties.xml @@ -15,7 +15,8 @@ <!-- include as common entity for module build scripts --> <!-- should only need to edit version properties --> - +<project name="build-properties" default="init-properties"> + <target name="init-properties" unless="aspectj.modules.build.dir"> @@ -29,6 +30,7 @@ - build.version.eclipse.plugins should be set to "9.9.9" for "DEVELOPMENT", and - the same as build.version.long (in major.minor.service form) for releases. --> + <property name="build.verbose" value="false"/> <property name="build.version" value="DEVELOPMENT"/> <property name="build.version.base" value="1.2"/> <property name="build.version.long" value="DEVELOPMENT"/> @@ -67,6 +69,8 @@ location="${aj.build.dir}/jars"/> <property name="aj.dist.dir" location="${aj.build.dir}/dist"/> + <property name="aj.junit.dir" + location="${aj.build.dir}/junit"/> <property name="aj.webDeploy.dir" location="${aj.build.dir}/webDeploy"/> <property name="aj.plugin.org.aspectj.ajde.dir" @@ -92,24 +96,33 @@ location="${aspectj.modules.build.dir}/products"/> <property name="aspectj.modules.tests.dir" location="${aspectj.modules.dir}/tests"/> - <property name="aspectj.build.jar" - location="${aspectj.modules.lib.dir}/build/build.jar"/> - <available file="${aspectj.build.jar}" - property="aspectj.build.jar.available" - value="${aspectj.build.jar}"/> + <jar-property name="junit.jar" + location="${aspectj.modules.lib.dir}/junit/junit.jar"/> </target> <target name="init-taskdefs" depends="init-properties" unless="init-taskdefs.done" > - <fail unless="aspectj.build.jar.available" - message="unable to find aspectj.build.jar: ${aspectj.build.jar}"/> + <jar-property name="aspectj.build.jar" + location="${aspectj.modules.lib.dir}/build/build.jar"/> + <jar-property name="lib.ant.jar" + location="${aspectj.modules.lib.dir}/ant/lib/ant.jar"/> <taskdef resource="org/aspectj/internal/tools/ant/taskdefs/taskdefs.properties" classpath="${aspectj.build.jar}"/> - <!-- run directly from classes in bin when debugging. - <taskdef resource="org/aspectj/internal/tools/ant/taskdefs/taskdefs.properties" - classpath="${aspectj.modules.dir}/build/bin"/> - --> + <property name="aj.taskdef.package" + value="org.aspectj.internal.tools.ant.taskdefs"/> + <path id="ant.lib.path"> + <fileset dir="${aspectj.modules.lib.dir}/ant/lib"> + <include name="**/*.jar"/> + </fileset> + </path> + <taskdef name="junit" + classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask" + classpathref="ant.lib.path"/> + <taskdef name="junitreport" + classname="org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator" + classpathref="ant.lib.path"/> + <property name="init-taskdefs.done" value="done"/> </target> @@ -186,3 +199,28 @@ java.home = ${java.home} </echo> </target> + + <macrodef name="jar-property"> + <attribute name="name"/> + <attribute name="location"/> + <sequential> + <property name="@{name}" + location="@{location}"/> + <available file="${@{name}}" + property="@{name}.available" + value="${@{name}}"/> + <fail unless="@{name}.available" + message="unable to find @{name}: ${@{name}}"/> + </sequential> + </macrodef> + + <!-- todo convert clients to clean-dir --> + <macrodef name="clean-dir"> + <attribute name="dir"/> + <sequential> + <mkdir dir="@{dir}"/> + <delete dir="@{dir}"/> + <mkdir dir="@{dir}"/> + </sequential> + </macrodef> +</project> |