You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by an...@apache.org on 2006/10/16 03:44:20 UTC

svn commit: r464359 - /ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java

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