summaryrefslogtreecommitdiffstats
path: root/build.xml
diff options
context:
space:
mode:
authorchibash <chiba@javassist.org>2018-05-08 09:24:19 +0900
committerchibash <chiba@javassist.org>2018-05-08 09:24:19 +0900
commit040a9cfc267dde60b0977227a479a939a4e828f6 (patch)
tree4f82ac315a84e4c789d1855f230850073f898e62 /build.xml
parent1108f94e71f78b8fadef162611636127e9948af8 (diff)
downloadjavassist-040a9cfc267dde60b0977227a479a939a4e828f6.tar.gz
javassist-040a9cfc267dde60b0977227a479a939a4e828f6.zip
fixes a minor bug in a test case.
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml12
1 files changed, 12 insertions, 0 deletions
diff --git a/build.xml b/build.xml
index 5273c494..4300d7ac 100644
--- a/build.xml
+++ b/build.xml
@@ -16,6 +16,7 @@
<property name="build.dir" value="${basedir}/target"/>
<property name="build.classes.dir" value="${build.dir}/classes"/>
<property name="test.src.dir" value="${basedir}/src/test"/>
+ <property name="test.lib.dir" value="${test.src.dir}/resources"/>
<property name="test.build.dir" value="${build.dir}/test-classes"/>
<property name="test.run.dir" value="${build.dir}/runtest"/>
<property name="test.reports.dir" value = "${build.dir}/test-output"/>
@@ -39,6 +40,7 @@
<path id="test.classpath">
<pathelement location="${test.build.dir}"/>
+ <pathelement location="${test.lib.dir}"/>
<pathelement location="${lib.dir}/junit.jar"/>
<pathelement location="${lib.dir}/hamcrest.jar"/>
<pathelement location="${build.classes.dir}"/>
@@ -100,15 +102,23 @@
</target>
<target name="runtest" depends="jar,test-compile">
+ <copy file="${test.lib.dir}/empty.jar"
+ tofile="${test.lib.dir}/emptyorig.jar"
+ preservelastmodified="true" />
<junit fork="true" printsummary="true" dir="${test.run.dir}">
<jvmarg value="-XX:-FailOverToOldVerifier"/>
<classpath refid="test.classpath"/>
<formatter type="xml" extension=".xml"/>
<test name="javassist.JvstTest" outfile="TestLog" />
</junit>
+ <move file="${test.lib.dir}/emptyorig.jar"
+ tofile="${test.lib.dir}/empty.jar" />
</target>
<target name="runtest9" depends="jar,test-compile">
+ <copy file="${test.lib.dir}/empty.jar"
+ tofile="${test.lib.dir}/emptyorig.jar"
+ preservelastmodified="true" />
<junit fork="true" printsummary="true" dir="${test.run.dir}">
<jvmarg line="--add-opens java.base/java.lang=ALL-UNNAMED" />
<jvmarg value="-XX:-FailOverToOldVerifier"/>
@@ -116,6 +126,8 @@
<formatter type="xml" extension=".xml"/>
<test name="javassist.JvstTest" outfile="TestLog" />
</junit>
+ <move file="${test.lib.dir}/emptyorig.jar"
+ tofile="${test.lib.dir}/empty.jar" />
</target>
<target name="sample" depends="compile">