ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r1002462 - in /ant/core/trunk: lib/optional/junit-4.8.1.jar src/tests/antunit/taskdefs/taskdef-test.xml
Date Wed, 29 Sep 2010 04:15:44 GMT
Author: bodewig
Date: Wed Sep 29 04:15:43 2010
New Revision: 1002462

URL: http://svn.apache.org/viewvc?rev=1002462&view=rev
Log:
move jars that are created during tests but cannot be deleted to a directory inside the build
dir rather than java.io.tmpdir

Modified:
    ant/core/trunk/lib/optional/junit-4.8.1.jar
    ant/core/trunk/src/tests/antunit/taskdefs/taskdef-test.xml

Modified: ant/core/trunk/lib/optional/junit-4.8.1.jar
URL: http://svn.apache.org/viewvc/ant/core/trunk/lib/optional/junit-4.8.1.jar?rev=1002462&r1=1002461&r2=1002462&view=diff
==============================================================================
Binary files - no diff available.

Modified: ant/core/trunk/src/tests/antunit/taskdefs/taskdef-test.xml
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/tests/antunit/taskdefs/taskdef-test.xml?rev=1002462&r1=1002461&r2=1002462&view=diff
==============================================================================
--- ant/core/trunk/src/tests/antunit/taskdefs/taskdef-test.xml (original)
+++ ant/core/trunk/src/tests/antunit/taskdefs/taskdef-test.xml Wed Sep 29 04:15:43 2010
@@ -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"
@@ -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>
@@ -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"/>
@@ -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"/>
@@ -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}">
@@ -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}">



Mime
View raw message