ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anto...@apache.org
Subject svn commit: r464359 - /ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java
Date Mon, 16 Oct 2006 01:44:20 GMT
Author: antoine
Date: Sun Oct 15 18:44:19 2006
New Revision: 464359

URL: http://svn.apache.org/viewvc?view=rev&rev=464359
Log:
use FileUtils.close to close the Reader open for the crash file

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?view=diff&rev=464359&r1=464358&r2=464359
==============================================================================
--- 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
Oct 15 18:44:19 2006
@@ -1028,11 +1028,7 @@
                 e.printStackTrace();
                 // ignored.
             } finally {
-                try {
-                    br.close();
-                } catch (IOException ioe) {
-                    // nothing
-                }
+                FileUtils.close(br);
             }
             if (watchdog != null && watchdog.killedProcess()) {
                 result.timedOut = true;



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


Mime
View raw message