ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Paris" <>
Subject Re: How grab output to "System.out"?
Date Fri, 30 Jan 2004 05:37:34 GMT
Thanks. If I'm instantiating it through the Project class, how would I add 
my own logger? i've already added a BuildListener but that doesn't grab the 
"System.out" prints from the test program. I'm assuming if I set my logger 
as the default one, it will send that there?

Thanks for all your help so far!

>From: Conor MacNeill <>
>Reply-To: "Ant Users List" <>
>To: "Ant Users List" <>
>Subject: Re: How grab output to "System.out"?
>Date: Fri, 30 Jan 2004 15:55:22 +1100
>On Fri, 30 Jan 2004 11:19 am, Robert Paris wrote:
> > What I'm doing is instantiating Project, and then configuring it with
> > ProjectHelper. Then I call project.executeTask(...). The problem is that
> > Ant is grabbing the output somewhere, and I want to be able to grab it
> > instead. It's not a question of grabbing System.out as that's too late 
> > already added "[task_name]" to the output by that point. I want the 
> > output that ant gets from the programs it runs.
> >
>If that is all you are interested in doing, you should just write your own
>logger or listener. The adornment [exec] is added by the default logger and
>is not part of the central ant "core" which handles message logging, etc.
>If you are instantiating Project yourself, it is unlikely that Ant could 
>added the [taskname] adornment unless you are also using the DefaultLogger.
>To unsubscribe, e-mail:
>For additional commands, e-mail:

High-speed usersóbe more efficient online with the new MSN Premium Internet 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message