Skip to content

Commit

Permalink
move jars that are created during tests but cannot be deleted to a di…
Browse files Browse the repository at this point in the history
…rectory inside the build dir rather than java.io.tmpdir

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@1002462 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
bodewig committed Sep 29, 2010
1 parent 4e18429 commit 410eddd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Binary file modified lib/optional/junit-4.8.1.jar
Binary file not shown.
12 changes: 7 additions & 5 deletions src/tests/antunit/taskdefs/taskdef-test.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@

<target name="setUp">
<mkdir dir="${input}/org/example"/>
<property name="tmpdir" location="../../../../build/ant-unit/taskdef"/>
<mkdir dir="${tmpdir}"/>
<echoxml file="${input}/org/example/antlib.xml">
<antlib>
<taskdef name="echooo"
Expand All @@ -30,7 +32,7 @@

<target name="testPlainDir" depends="setUp">
<tempfile property="jar" deleteonexit="true"
destdir="${java.io.tmpdir}" prefix="test" suffix=".jar"/>
destdir="${tmpdir}" prefix="test" suffix=".jar"/>
<jar destfile="${jar}">
<fileset dir="${input}"/>
</jar>
Expand All @@ -43,7 +45,7 @@

<target name="testDirWithPling" depends="setUp"
description="https://issues.apache.org/bugzilla/show_bug.cgi?id=50007">
<property name="dir" location="${java.io.tmpdir}/pl!ng"/>
<property name="dir" location="${tmpdir}/pl!ng"/>
<mkdir dir="${dir}"/>
<tempfile property="jar" deleteonexit="true" destdir="${dir}"
prefix="test" suffix=".jar"/>
Expand All @@ -61,7 +63,7 @@
by ClassLoader.getResources() -->
<target name="NOtestDirWithPlingAtEnd" depends="setUp"
description="https://issues.apache.org/bugzilla/show_bug.cgi?id=50007">
<property name="dir" location="${java.io.tmpdir}/pling!"/>
<property name="dir" location="${tmpdir}/pling!"/>
<mkdir dir="${dir}"/>
<tempfile property="jar" deleteonexit="true" destdir="${dir}"
prefix="test" suffix=".jar"/>
Expand All @@ -77,7 +79,7 @@

<target name="testPlingInJar" depends="setUp">
<tempfile property="jar" deleteonexit="true"
destdir="${java.io.tmpdir}" prefix="test" suffix=".jar"/>
destdir="${tmpdir}" prefix="test" suffix=".jar"/>
<move file="${input}/org/example/antlib.xml"
tofile="${input}/org/examp!e/antlib.xml"/>
<jar destfile="${jar}">
Expand All @@ -92,7 +94,7 @@

<target name="testPlingInJarAtEnd" depends="setUp">
<tempfile property="jar" deleteonexit="true"
destdir="${java.io.tmpdir}" prefix="test" suffix=".jar"/>
destdir="${tmpdir}" prefix="test" suffix=".jar"/>
<move file="${input}/org/example/antlib.xml"
tofile="${input}/org/example!/antlib.xml"/>
<jar destfile="${jar}">
Expand Down

0 comments on commit 410eddd

Please sign in to comment.