Conor MacNeill <[EMAIL PROTECTED]> wrote: > Yes, the issue really applies to all Tasks and so, perhaps, the > mechanisms for redirection should be supplied in the Task > superclass. System.out/System.err would be set to either a > logOutputStream or a FileOutputStream and the particular task > execution could ignore the whole issue, just writing to > System.out.
Most of them could, yes. <java> needs to keep track of an output file for forked execution for example, but in the general case this should work. > When using the LogOuptutStream, log levels would not be > settable, just coming out as MSG_INFO for System.out and MSG_WARN > for System.err. This seems to be the convention that has always been used in <exec>, so I'd say yes. > A separate <log> task with the ability to write a message at a > particular level may still be useful. Yep. Stefan
