ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antoine Levy-Lambert <anto...@gmx.de>
Subject Re: [PATCH] JUnitTestRunner.filterStack(String) does not flush BufferedWriter
Date Sun, 31 Jan 2010 23:17:23 GMT
Hello N C,

thanks for reporting this, I have committed a call to FileUtils.close in
a finally block which does the same and might also do it if an exception
happened during this reporting process.

If you are setup to build/compile ant yourself, you can update your
working copy from svn and report whether the change fixes the problem
for you.

Regards,

Antoine

N C wrote:
> --- On Sat, 1/30/10, N C <nc1500@yahoo.com> wrote:
>
>   
>> Attached is a patch closing the BufferedWriter.
>>     
>
> I'm not sure the attachment went through...
>
> --- JUnitTestRunner.java.orig   2010-01-30 16:22:58.000000000 -0500
> +++ JUnitTestRunner.java        2010-01-30 16:23:12.000000000 -0500
> @@ -896,6 +896,7 @@
>                      pw.newLine();
>                  }
>              }
> +            pw.close();
>          } catch (Exception e) {
>              return stack; // return the stack unfiltered
>          }
>
>
>       
>
>
>   


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


Mime
View raw message