Browse Source

<junit> wouldn't write to a file anymore.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268561 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 24 years ago
parent
commit
bd79701cef
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java

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

@@ -398,7 +398,9 @@ public class JUnitTask extends Task {
for (int i = 0; i < feArray.length; i++) { for (int i = 0; i < feArray.length; i++) {
FormatterElement fe = feArray[i]; FormatterElement fe = feArray[i];
File outFile = getOutput(fe,test); File outFile = getOutput(fe,test);
if (outFile == null) {
if (outFile != null) {
fe.setOutfile(outFile);
} else {
fe.setOutput( getDefaultOutput() ); fe.setOutput( getDefaultOutput() );
} }
runner.addFormatter(fe.createFormatter()); runner.addFormatter(fe.createFormatter());


Loading…
Cancel
Save