ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r420329 - /ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java
Date Sun, 09 Jul 2006 18:18:21 GMT
Author: jkf
Date: Sun Jul  9 11:18:21 2006
New Revision: 420329

URL: http://svn.apache.org/viewvc?rev=420329&view=rev
Log:
The crashfile was originally written to the file.toString, now the absolute path is used,
hopefully this fixes the gump problems.

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java?rev=420329&r1=420328&r2=420329&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java Sun
Jul  9 11:18:21 2006
@@ -941,10 +941,8 @@
         }
 
         File vmWatcher = createTempPropertiesFile("junitvmwatcher");
-        formatterArg.append("crashfile=");
-        formatterArg.append(vmWatcher);
-        cmd.createArgument().setValue(formatterArg.toString());
-
+        cmd.createArgument().setValue("crashfile="
+                                      + vmWatcher.getAbsolutePath());
         File propsFile = createTempPropertiesFile("junit");
         cmd.createArgument().setValue("propsfile="
                                       + propsFile.getAbsolutePath());
@@ -1028,8 +1026,7 @@
     private File createTempPropertiesFile(String prefix) {
         File propsFile =
             FILE_UTILS.createTempFile(prefix, ".properties",
-                tmpDir != null ? tmpDir : getProject().getBaseDir());
-        propsFile.deleteOnExit();
+                tmpDir != null ? tmpDir : getProject().getBaseDir(), true);
         return propsFile;
     }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message