aboutsummaryrefslogtreecommitdiffstats
path: root/tests/incremental/injarSrc/build.xml
diff options
context:
space:
mode:
authorwisberg <wisberg>2003-03-10 23:23:15 +0000
committerwisberg <wisberg>2003-03-10 23:23:15 +0000
commitc1361318351aeaa70c029bf68b698b26f5046cb4 (patch)
tree22c740bed8a0c135cbd64985f859684639f73fa7 /tests/incremental/injarSrc/build.xml
parentcd8bd2c7cef6d403d6a60c7f3deb104b2898364b (diff)
downloadaspectj-c1361318351aeaa70c029bf68b698b26f5046cb4.tar.gz
aspectj-c1361318351aeaa70c029bf68b698b26f5046cb4.zip
sources and build script for two sample input jars, to be used by other incremental tests.
The non-.java files are resource dummies for taskdef copying tests.
Diffstat (limited to 'tests/incremental/injarSrc/build.xml')
-rw-r--r--tests/incremental/injarSrc/build.xml49
1 files changed, 49 insertions, 0 deletions
diff --git a/tests/incremental/injarSrc/build.xml b/tests/incremental/injarSrc/build.xml
new file mode 100644
index 000000000..4d35b7756
--- /dev/null
+++ b/tests/incremental/injarSrc/build.xml
@@ -0,0 +1,49 @@
+
+<!-- to test incremental task, run setup then test -->
+<project default="setup" basedir=".">
+ <target name="init">
+ <property name="test.dir"
+ location="${basedir}"/>
+ <property name="aspectjrt.jar"
+ location="${test.dir}/../../../lib/test/aspectjrt.jar"/>
+ <taskdef resource="org/aspectj/tools/ant/taskdefs/aspectjTaskdefs.properties">
+ <classpath>
+ <pathelement path="${aspectjtools.jar}"/>
+ </classpath>
+ </taskdef>
+ <available property="aspectjrt.jar.available"
+ file="${aspectjrt.jar}"/>
+ <fail unless="aspectjrt.jar.available"
+ message="expecting aspectjrt.jar: ${aspectjrt.jar}"/>
+ <available property="aspectjtools.jar.available"
+ file="${aspectjtools.jar}"/>
+ <fail unless="aspectjtools.jar.available"
+ message="expecting aspectjtools.jar: ${aspectjtools.jar}"/>
+ </target>
+
+ <target name="call-makeInjar">
+ <!-- when XCopyInjars support rolled out, use that -->
+ <iajc outjar="${test.dir}/${name}Classes.jar"
+ classpath="${aspectjrt.jar}"
+ sourceroots="${test.dir}/${name}"/>
+
+ <zip zipfile="${test.dir}/${name}Injar.jar">
+ <zipfileset src="${test.dir}/${name}Classes.jar"/>
+ <fileset dir="${test.dir}/${name}"
+ includes="**/*"
+ excludes="**/*.java"/>
+ </zip>
+ <delete file="${test.dir}/${name}Classes.jar"/>
+ </target>
+
+ <target name="setup" depends="init"
+ description="create input jars">
+ <antcall target="call-makeInjar">
+ <param name="name" value="one"/>
+ </antcall>
+ <antcall target="call-makeInjar">
+ <param name="name" value="two"/>
+ </antcall>
+ </target>
+
+</project> \ No newline at end of file