diff options
Diffstat (limited to 'tests/ant/etc/ajclean.xml')
-rw-r--r-- | tests/ant/etc/ajclean.xml | 318 |
1 files changed, 318 insertions, 0 deletions
diff --git a/tests/ant/etc/ajclean.xml b/tests/ant/etc/ajclean.xml new file mode 100644 index 000000000..e3c893c26 --- /dev/null +++ b/tests/ant/etc/ajclean.xml @@ -0,0 +1,318 @@ +<project name="ajc.test" basedir="." default="init"> + + <property name="ant.test.sources" value="../src" /> + <property name="ant.test.classes" value="test-classes"/> + + <target name="init"> + <tstamp/> + <taskdef name="ajc" classname="org.aspectj.tools.ant.taskdefs.Ajc"/> + <taskdef name="ajclean" classname="org.aspectj.tools.ant.taskdefs.Ajclean"/> + </target> + + <target name="test1" depends="init"> + <ajc srcdir="${ant.test.sources}" + destdir="${ant.test.classes}" + includes="One.java" + /> + <ajclean srcdir="${ant.test.sources}" + destdir="${ant.test.classes}" + includes="One.java" + /> + </target> + + <target name="test2" depends="init"> + <ajc srcdir="${ant.test.sources}" + destdir="${ant.test.classes}" + includes="One.java,Two.java" + /> + <ajclean srcdir="${ant.test.sources}" + destdir="${ant.test.classes}" + includes="One.java,Two.java" + /> + </target> + + <target name="test3" depends="init"> + <ajc srcdir="${ant.test.sources}" + destdir="${ant.test.classes}" + includes="*" + /> + <ajclean srcdir="${ant.test.sources}" + destdir="${ant.test.classes}" + includes="*" + /> + </target> + + <target name="test4" depends="init"> + <ajc srcdir="${ant.test.sources}" + destdir="${ant.test.classes}" + argfiles="${ant.test.sources}/files1.lst" + /> + <ajclean srcdir="${ant.test.sources}" + destdir="${ant.test.classes}" + argfiles="${ant.test.sources}/files1.lst" + /> + </target> + + <target name="test4b" depends="init"> + <ajc + destdir="${ant.test.classes}" + argfiles="${ant.test.sources}/files1.lst" + /> + <ajclean + destdir="${ant.test.classes}" + argfiles="${ant.test.sources}/files1.lst" + /> + </target> + + <target name="test5" depends="init"> + <ajc srcdir="${ant.test.sources}" + destdir="${ant.test.classes}" + argfiles="${ant.test.sources}/files2.lst" + /> + <ajclean srcdir="${ant.test.sources}" + destdir="${ant.test.classes}" + argfiles="${ant.test.sources}/files2.lst" + /> + </target> + + <target name="test5b" depends="init"> + <ajc + destdir="${ant.test.classes}" + argfiles="${ant.test.sources}/files2.lst" + /> + <ajclean + destdir="${ant.test.classes}" + argfiles="${ant.test.sources}/files2.lst" + /> + </target> + + <target name="test6" depends="init"> + <ajc srcdir="${ant.test.sources}" + destdir="${ant.test.classes}" + argfiles="${ant.test.sources}/files3.lst" + /> + <ajclean srcdir="${ant.test.sources}" + destdir="${ant.test.classes}" + argfiles="${ant.test.sources}/files3.lst" + /> + </target> + + <target name="test6b" depends="init"> + <ajc + destdir="${ant.test.classes}" + argfiles="${ant.test.sources}/files3.lst" + /> + <ajclean + destdir="${ant.test.classes}" + argfiles="${ant.test.sources}/files3.lst" + /> + </target> + + <target name="test8" depends="init"> + <ajc srcdir="${ant.test.sources}" + destdir="${ant.test.classes}" + excludes="Two.java" + argfiles="${ant.test.sources}/files2.lst" + /> + <ajclean srcdir="${ant.test.sources}" + destdir="${ant.test.classes}" + excludes="Two.java" + argfiles="${ant.test.sources}/files2.lst" + /> + </target> + + <target name="test9" depends="init"> + <ajc srcdir="${ant.test.sources}" + destdir="${ant.test.classes}" + includes="One.java" + threads="1" + /> + <ajclean srcdir="${ant.test.sources}" + destdir="${ant.test.classes}" + includes="One.java" + threads="1" + /> + </target> + + <target name="test10" depends="init"> + <ajc srcdir="${ant.test.sources}" + destdir="${ant.test.classes}" + includes="One.java" + nocomments="yes" + /> + <ajclean srcdir="${ant.test.sources}" + destdir="${ant.test.classes}" + includes="One.java" + nocomments="yes" + /> + </target> + + <target name="test11" depends="init"> + <ajc srcdir="${ant.test.sources}" + destdir="${ant.test.classes}" + includes="One.java" + nosymbols="yes" + /> + <ajclean srcdir="${ant.test.sources}" + destdir="${ant.test.classes}" + includes="One.java" + nosymbols="yes" + /> + </target> + + <target name="test12" depends="init"> + <ajc srcdir="${ant.test.sources}" + destdir="${ant.test.classes}" + includes="One.java" + preprocess="yes" + /> + <ajclean srcdir="${ant.test.sources}" + destdir="${ant.test.classes}" + includes="One.java" + preprocess="yes" + /> + </target> + + <target name="test13" depends="init"> + <ajc srcdir="${ant.test.sources}" + destdir="${ant.test.classes}" + includes="One.java" + workingdir="ajworkingdir" + /> + <ajclean srcdir="${ant.test.sources}" + destdir="${ant.test.classes}" + includes="One.java" + workingdir="ajworkingdir" + /> + </target> + + + <!-- Everything --> + + <target name="test1star" depends="init"> + <ajc srcdir="${ant.test.sources}" + destdir="${ant.test.classes}" + includes="One.java" + /> + <ajclean srcdir="${ant.test.sources}"/> + </target> + + <target name="test2star" depends="init"> + <ajc srcdir="${ant.test.sources}" + destdir="${ant.test.classes}" + includes="One.java,Two.java" + /> + <ajclean srcdir="${ant.test.sources}"/> + </target> + + <target name="test3star" depends="init"> + <ajc srcdir="${ant.test.sources}" + destdir="${ant.test.classes}" + includes="*" + /> + <ajclean srcdir="${ant.test.sources}"/> + </target> + + <target name="test4star" depends="init"> + <ajc srcdir="${ant.test.sources}" + destdir="${ant.test.classes}" + argfiles="${ant.test.sources}/files1.lst" + /> + <ajclean srcdir="${ant.test.sources}"/> + </target> + + <target name="test4bstar" depends="init"> + <ajc + destdir="${ant.test.classes}" + argfiles="${ant.test.sources}/files1.lst" + /> + <ajclean srcdir="${ant.test.sources}"/> + </target> + + <target name="test5star" depends="init"> + <ajc srcdir="${ant.test.sources}" + destdir="${ant.test.classes}" + argfiles="${ant.test.sources}/files2.lst" + /> + <ajclean srcdir="${ant.test.sources}"/> + </target> + + <target name="test5bstar" depends="init"> + <ajc + destdir="${ant.test.classes}" + argfiles="${ant.test.sources}/files2.lst" + /> + <ajclean srcdir="${ant.test.sources}"/> + </target> + + <target name="test6star" depends="init"> + <ajc srcdir="${ant.test.sources}" + destdir="${ant.test.classes}" + argfiles="${ant.test.sources}/files3.lst" + /> + <ajclean srcdir="${ant.test.sources}"/> + </target> + + <target name="test6bstar" depends="init"> + <ajc + destdir="${ant.test.classes}" + argfiles="${ant.test.sources}/files3.lst" + /> + <ajclean srcdir="${ant.test.sources}"/> + </target> + + <target name="test8star" depends="init"> + <ajc srcdir="${ant.test.sources}" + destdir="${ant.test.classes}" + excludes="Two.java" + argfiles="${ant.test.sources}/files2.lst" + /> + <ajclean srcdir="${ant.test.sources}"/> + </target> + + <target name="test9star" depends="init"> + <ajc srcdir="${ant.test.sources}" + destdir="${ant.test.classes}" + includes="One.java" + threads="1" + /> + <ajclean srcdir="${ant.test.sources}"/> + </target> + + <target name="test10star" depends="init"> + <ajc srcdir="${ant.test.sources}" + destdir="${ant.test.classes}" + includes="One.java" + nocomments="yes" + /> + <ajclean srcdir="${ant.test.sources}"/> + </target> + + <target name="test11star" depends="init"> + <ajc srcdir="${ant.test.sources}" + destdir="${ant.test.classes}" + includes="One.java" + nosymbols="yes" + /> + <ajclean srcdir="${ant.test.sources}"/> + </target> + + <target name="test12star" depends="init"> + <ajc srcdir="${ant.test.sources}" + destdir="${ant.test.classes}" + includes="One.java" + preprocess="yes" + /> + <ajclean srcdir="${ant.test.sources}"/> + </target> + + <target name="test13star" depends="init"> + <ajc srcdir="${ant.test.sources}" + destdir="${ant.test.classes}" + includes="One.java" + workingdir="ajworkingdir" + /> + <ajclean srcdir="${ant.test.sources}"/> + </target> + +</project> |