And I thought thatīs only on my machine ... (thatīs why I put that
into a try-catch block in the tearDown() - the _real_ test shouldnīt
fail only because the cleanup fails ...)

"task not closing things" - I will take a look into that.
While programming I use java.io.FileReader without a close (I have tried
that - without success). And the other filters doesnīt close the Reader
either.

More hints are welcome :-)



Jan



> -----Original Message-----
> From: Steve Loughran [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 23, 2003 8:23 AM
> To: Ant Developers List
> Subject: concat teardown failing
> 
> 
> 
> the cleanup script in concat.xml is failing. Looks to me like 
> the files 
> are still open when the delete task takes action. Could set 
> failonerror 
> flags to ignore it, but it may be a symptom of the task not 
> closing things.
> 
> platform: winxp, java1.4.2
> 
>      [junit] ------------- Standard Error -----------------
>      [junit] 
> C:\Java\Apache\jakarta-ant\src\etc\testcases\filters\concat.xml:13: 
> Unable to delete file 
> C:\Java\Apache\jakarta-ant\src\etc\testcases\filters\result\co
> ncat.filterReaderPrepend.test
>      [junit]  at 
> org.apache.tools.ant.taskdefs.Delete.removeDir(Delete.java:612)
>      [junit]  at 
> org.apache.tools.ant.taskdefs.Delete.execute(Delete.java:530)
>      [junit]  at 
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:303)
>      [junit]  at org.apache.tools.ant.Task.perform(Task.java:401)
>      [junit]  at org.apache.tools.ant.Target.execute(Target.java:338)
>      [junit]  at 
> org.apache.tools.ant.Target.performTasks(Target.java:365)
>      [junit]  at 
> org.apache.tools.ant.Project.executeTarget(Project.java:1237)
>      [junit]  at 
> org.apache.tools.ant.BuildFileTest.executeTarget(BuildFileTest
> .java:273)
>      [junit]  at 
> org.apache.tools.ant.filters.ConcatFilterTest.tearDown(ConcatF
> ilterTest.java:126)
> 
> ...
> 
>      [junit] 
> C:\Java\Apache\jakarta-ant\src\etc\testcases\filters\concat.xml:13: 
> Unable to delete file 
> C:\Java\Apache\jakarta-ant\src\etc\testcases\filters\result\append.txt
> 
>      [junit] 
> C:\Java\Apache\jakarta-ant\src\etc\testcases\filters\concat.xml:13: 
> Unable to delete file 
> C:\Java\Apache\jakarta-ant\src\etc\testcases\filters\result\co
> ncat.concatfilter.test
> 
> ...
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

Reply via email to