Browse Source

Should not throw an error if the temp dir does not yet exist.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@1222711 13f79535-47bb-0310-9956-ffa450edef68
master
Jesse N. Glick 13 years ago
parent
commit
4495b959d9
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/tests/junit/org/apache/tools/ant/taskdefs/optional/junit/XMLResultAggregatorTest.java

+ 3
- 1
src/tests/junit/org/apache/tools/ant/taskdefs/optional/junit/XMLResultAggregatorTest.java View File

@@ -41,7 +41,9 @@ public class XMLResultAggregatorTest extends TestCase {
return;
}
final File d = new File(System.getProperty("java.io.tmpdir"), "XMLResultAggregatorTest");
new Delete() {{removeDir(d);}}; // is there no utility method for this?
if (d.exists()) {
new Delete() {{removeDir(d);}}; // is there no utility method for this?
}
assertTrue(d.getAbsolutePath(), d.mkdir());
File xml = new File(d, "x.xml");
PrintWriter pw = new PrintWriter(new FileOutputStream(xml));


Loading…
Cancel
Save