|
|
@@ -35,6 +35,7 @@ import junit.framework.Test; |
|
|
|
import org.apache.tools.ant.BuildException; |
|
|
|
import org.apache.tools.ant.util.DOMElementWriter; |
|
|
|
import org.apache.tools.ant.util.DateUtils; |
|
|
|
import org.apache.tools.ant.util.FileUtils; |
|
|
|
import org.w3c.dom.Document; |
|
|
|
import org.w3c.dom.Element; |
|
|
|
import org.w3c.dom.Text; |
|
|
@@ -158,13 +159,7 @@ public class XMLJUnitResultFormatter implements JUnitResultFormatter, XMLConstan |
|
|
|
throw new BuildException("Unable to write log file", exc); |
|
|
|
} finally { |
|
|
|
if (out != System.out && out != System.err) { |
|
|
|
if (wri != null) { |
|
|
|
try { |
|
|
|
wri.close(); |
|
|
|
} catch (IOException e) { |
|
|
|
// ignore |
|
|
|
} |
|
|
|
} |
|
|
|
FileUtils.close(wri); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|