diff options
author | wisberg <wisberg> | 2003-10-31 03:52:11 +0000 |
---|---|---|
committer | wisberg <wisberg> | 2003-10-31 03:52:11 +0000 |
commit | 4c6000abf30422a66853138395baff77f4e5386a (patch) | |
tree | 638c02d440ba560357fc20cee808071c49799c15 /tests/bugs | |
parent | d8d01e83e3f1a618b5e79e3311d6a47bb842aea0 (diff) | |
download | aspectj-4c6000abf30422a66853138395baff77f4e5386a.tar.gz aspectj-4c6000abf30422a66853138395baff77f4e5386a.zip |
@testcase PR#42574 ZIP and JAR extensions in classpath and extdirs
Diffstat (limited to 'tests/bugs')
-rw-r--r-- | tests/bugs/extdirs/build.xml | 55 | ||||
-rw-r--r-- | tests/bugs/extdirs/dir-1/util-1.JAR | bin | 0 -> 377 bytes | |||
-rw-r--r-- | tests/bugs/extdirs/dir-2/util-2.ZIP | bin | 0 -> 385 bytes | |||
-rw-r--r-- | tests/bugs/extdirs/extdirs-src/dir-1/pack/Util.java | 7 | ||||
-rw-r--r-- | tests/bugs/extdirs/extdirs-src/dir-2/pack2/Util2.java | 7 | ||||
-rw-r--r-- | tests/bugs/extdirs/extdirs-src/main/Main.java | 8 | ||||
-rw-r--r-- | tests/bugs/extdirs/extdirs-src/main/main.lst | 1 |
7 files changed, 78 insertions, 0 deletions
diff --git a/tests/bugs/extdirs/build.xml b/tests/bugs/extdirs/build.xml new file mode 100644 index 000000000..7798f7189 --- /dev/null +++ b/tests/bugs/extdirs/build.xml @@ -0,0 +1,55 @@ +<project name="extdirs-setup" basedir="." default="all"> + + <target name="all"> + <property + name="classes.dir" + location="${basedir}/classes"/> + + <mkdir dir="${classes.dir}"/> + <delete dir="${classes.dir}"/> + <mkdir dir="${classes.dir}"/> + <javac destdir="${classes.dir}" + target="1.1" + includes="**/*.java" + srcdir="${basedir}/extdirs-src/dir-1"/> + <zip destfile="${basedir}/dir-1/util-1.JAR"> + <fileset dir="${classes.dir}"/> + </zip> + + <mkdir dir="${classes.dir}"/> + <delete dir="${classes.dir}"/> + <mkdir dir="${classes.dir}"/> + <javac destdir="${classes.dir}" + target="1.1" + includes="**/*.java" + srcdir="${basedir}/extdirs-src/dir-2"/> + <zip destfile="${basedir}/dir-2/util-2.ZIP"> + <fileset dir="${classes.dir}"/> + </zip> + + + <mkdir dir="${classes.dir}"/> + <delete dir="${classes.dir}"/> + <mkdir dir="${classes.dir}"/> + <javac + destdir="${classes.dir}" + srcdir="${basedir}/extdirs-src/main" + includes="Main.java"> + <classpath> + <pathelement path="${basedir}/dir-2/util-2.ZIP"/> + <pathelement path="${basedir}/dir-1/util-1.JAR"/> + </classpath> + </javac> + <java classname="Main"> + <classpath> + <pathelement path="${classes.dir}"/> + <pathelement path="${basedir}/dir-2/util-2.ZIP"/> + <pathelement path="${basedir}/dir-1/util-1.JAR"/> + </classpath> + </java> + <mkdir dir="${classes.dir}"/> + <delete dir="${classes.dir}"/> + + </target> + +</project>
\ No newline at end of file diff --git a/tests/bugs/extdirs/dir-1/util-1.JAR b/tests/bugs/extdirs/dir-1/util-1.JAR Binary files differnew file mode 100644 index 000000000..0342041aa --- /dev/null +++ b/tests/bugs/extdirs/dir-1/util-1.JAR diff --git a/tests/bugs/extdirs/dir-2/util-2.ZIP b/tests/bugs/extdirs/dir-2/util-2.ZIP Binary files differnew file mode 100644 index 000000000..276240568 --- /dev/null +++ b/tests/bugs/extdirs/dir-2/util-2.ZIP diff --git a/tests/bugs/extdirs/extdirs-src/dir-1/pack/Util.java b/tests/bugs/extdirs/extdirs-src/dir-1/pack/Util.java new file mode 100644 index 000000000..fc17f5cb1 --- /dev/null +++ b/tests/bugs/extdirs/extdirs-src/dir-1/pack/Util.java @@ -0,0 +1,7 @@ + +package pack; + +public class Util { + public static void main(String[] args) { + } +}
\ No newline at end of file diff --git a/tests/bugs/extdirs/extdirs-src/dir-2/pack2/Util2.java b/tests/bugs/extdirs/extdirs-src/dir-2/pack2/Util2.java new file mode 100644 index 000000000..9678b8226 --- /dev/null +++ b/tests/bugs/extdirs/extdirs-src/dir-2/pack2/Util2.java @@ -0,0 +1,7 @@ + +package pack2; + +public class Util2 { + public static void main(String[] args) { + } +}
\ No newline at end of file diff --git a/tests/bugs/extdirs/extdirs-src/main/Main.java b/tests/bugs/extdirs/extdirs-src/main/Main.java new file mode 100644 index 000000000..987cbf32b --- /dev/null +++ b/tests/bugs/extdirs/extdirs-src/main/Main.java @@ -0,0 +1,8 @@ + +/** @testcase PR#42574 ZIP and JAR extensions in classpath and extdirs */ +public class Main { + public static void main(String[] args) { + pack.Util.main(args); + pack2.Util2.main(args); + } +}
\ No newline at end of file diff --git a/tests/bugs/extdirs/extdirs-src/main/main.lst b/tests/bugs/extdirs/extdirs-src/main/main.lst new file mode 100644 index 000000000..53d33fb7e --- /dev/null +++ b/tests/bugs/extdirs/extdirs-src/main/main.lst @@ -0,0 +1 @@ +Main.java |