Browse Source

The crashfile was originally written to the file.toString, now the absolute path is used, hopefully this fixes the gump problems.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@420329 13f79535-47bb-0310-9956-ffa450edef68
master
Jacobus Martinus Kruithof 19 years ago
parent
commit
b82d12d30f
1 changed files with 3 additions and 6 deletions
  1. +3
    -6
      src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java

+ 3
- 6
src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java View File

@@ -941,10 +941,8 @@ public class JUnitTask extends Task {
}

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 @@ public class JUnitTask extends Task {
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;
}



Loading…
Cancel
Save