aboutsummaryrefslogtreecommitdiffstats
path: root/docs/test
diff options
context:
space:
mode:
authorwisberg <wisberg>2005-03-22 21:27:08 +0000
committerwisberg <wisberg>2005-03-22 21:27:08 +0000
commit8c80fde9d4d3c7c2d913da377f8fb2de6e4bf854 (patch)
tree7eaa237754a0111da54820f473589ea09dc3c7c7 /docs/test
parent8766cadf5e70cf564ebc6699e48e3b2b7f20ad0a (diff)
downloadaspectj-8c80fde9d4d3c7c2d913da377f8fb2de6e4bf854.tar.gz
aspectj-8c80fde9d4d3c7c2d913da377f8fb2de6e4bf854.zip
bug 53209 - inpathDirCopyFilter doc updates and tests
Diffstat (limited to 'docs/test')
-rw-r--r--docs/test/antScriptTest/build.xml64
-rw-r--r--docs/test/antScriptTest/build/binary-input/ignore.txt1
-rw-r--r--docs/test/antScriptTest/ec/inpathDirSrc/InpathFile.java2
3 files changed, 40 insertions, 27 deletions
diff --git a/docs/test/antScriptTest/build.xml b/docs/test/antScriptTest/build.xml
index 2a7b00d82..7f875625c 100644
--- a/docs/test/antScriptTest/build.xml
+++ b/docs/test/antScriptTest/build.xml
@@ -61,6 +61,8 @@
<target name="clean" depends="init">
<delete quiet="on">
+ <fileset dir="${home.dir}/build/binary-input"
+ excludes="ignore.txt"/>
<fileset dir="${home.dir}"
includes="ec/int/persist.jar,
build/module.jar,
@@ -96,37 +98,45 @@
fork="${fork.iajc}"
sourceroots="${home.dir}/ec/module/src"
classpath="${home.dir}/tools/aspectj/lib/aspectjrt.jar"/>
+ <mkdir dir="${home.dir}/build/binary-input"/>
+ <iajc destdir="${home.dir}/build/binary-input"
+ failonerror="true"
+ fork="${fork.iajc}"
+ sourceroots="${home.dir}/ec/inpathDirSrc"
+ classpath="${home.dir}/tools/aspectj/lib/aspectjrt.jar"/>
</target>
<target name="build-test" depends="init,taskdef,setup"
description="test Ant script from the devguide">
- <!-- copy this from the Ant section of the rendered devguide -->
+ <!-- copy below from the Ant section of the rendered devguide -->
<!-- in eclipse, must run forked and not incremental -->
- <iajc outjar="${home.dir}/output/application.jar"
- injars="${home.dir}/build/module.jar"
- copyInjars="true"
- fork="${fork.iajc}"
- sourceRootCopyFilter="**/CVS/*,**/*.java"
- incremental="false" >
- <sourceroots>
- <pathelement location="${home.dir}/ec/project/src"/>
- <pathelement location="${home.dir}/ec/project/testsrc"/>
- </sourceroots>
- <aspectpath>
- <pathelement location="${home.dir}/ec/int/persist.jar"/>
- </aspectpath>
- <classpath>
- <pathelement location="${home.dir}/tools/aspectj/lib/aspectjrt.jar"/>
- </classpath>
- </iajc>
-
- <java classname="org.smart.app.Main">
- <classpath>
- <pathelement location="${home.dir}/tools/aspectj/lib/aspectjrt.jar"/>
- <pathelement location="${home.dir}/ec/int/persist.jar"/>
- <pathelement location="${home.dir}/output/application.jar"/>
- </classpath>
- </java>
- </target>
+ <iajc outjar="${home.dir}/output/application.jar"
+ sourceRootCopyFilter="**/CVS/*,**/*.java"
+ inpathDirCopyFilter="**/CVS/*,**/*.java,**/*.class"
+ incremental="true" >
+ <sourceroots>
+ <pathelement location="${home.dir}/ec/project/src"/>
+ <pathelement location="${home.dir}/ec/project/testsrc"/>
+ </sourceroots>
+ <inpath>
+ <pathelement location="${home.dir}/build/module.jar"/>
+ <pathelement location="${home.dir}/build/binary-input"/>
+ </inpath>
+ <aspectpath>
+ <pathelement location="${home.dir}/ec/int/persist.jar"/>
+ </aspectpath>
+ <classpath>
+ <pathelement location="${home.dir}/tools/aspectj/lib/aspectjrt.jar"/>
+ </classpath>
+ </iajc>
+
+ <java classname="org.smart.app.Main">
+ <classpath>
+ <pathelement location="${home.dir}/tools/aspectj/lib/aspectjrt.jar"/>
+ <pathelement location="${home.dir}/ec/int/persist.jar"/>
+ <pathelement location="${home.dir}/output/application.jar"/>
+ </classpath>
+ </java>
+ </target>
</project>
diff --git a/docs/test/antScriptTest/build/binary-input/ignore.txt b/docs/test/antScriptTest/build/binary-input/ignore.txt
new file mode 100644
index 000000000..c7d48fbb5
--- /dev/null
+++ b/docs/test/antScriptTest/build/binary-input/ignore.txt
@@ -0,0 +1 @@
+ignore - just to avoid CVS trimming empty directories.
diff --git a/docs/test/antScriptTest/ec/inpathDirSrc/InpathFile.java b/docs/test/antScriptTest/ec/inpathDirSrc/InpathFile.java
new file mode 100644
index 000000000..729709fea
--- /dev/null
+++ b/docs/test/antScriptTest/ec/inpathDirSrc/InpathFile.java
@@ -0,0 +1,2 @@
+
+public class InpathFile {} \ No newline at end of file