ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: Why does the echo task output to System.out?
Date Wed, 22 Nov 2000 10:01:05 GMT
Conor MacNeill <> 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

> 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.



View raw message