> -----Original Message----- > From: Stefan Bodewig [mailto:[EMAIL PROTECTED] > > On Fri, 5 Apr 2002, Magesh Umasankar <[EMAIL PROTECTED]> wrote: > > > Seems like the created log files are > > not being closed > > This is not only in <ant*>, Ant itself doesn't close the logfile > either if you invoke it with -logfile. > > BuildLoggers don't know whether they print to the console or a file, > so they cannot simply close the streams in buildFinished. This means > we need to take care of it from the outside.
I suggest using a KeepAliveOuputStream around the console output. It's lost in o.a.a.util, I commited it from rjunit sandbox in order to use it later for junit and other stuff (so that we could remove all these redundant if out != System.out, etc...). The later will really be later, but sounds like it could be useful for this now ? -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>