ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent Massol" <>
Subject RE: Logging output from the Java task?
Date Tue, 27 Jun 2006 15:47:02 GMT

> -----Original Message-----
> From: []
> Sent: mardi 27 juin 2006 17:39
> To:
> Subject: AW: Logging output from the Java task?
> >Thanks Jan. Actually you're right! We're already using a build
> >listener to catch Ant's logs so I guess simply using a
> >redirector with the alwayslog attribute set to true should do
> >the trick. Is that correct?
> Do you get the output of <java> when using "Ant alone"?

No. When using <java> there's an "output" attribute to collect the process's
output but it points to a file. AFAIK there's no way to have the <java>
task's output logged when using Ant 1.5.x but that's what I would like to
confirm... :-)

> Then you should get the output via your listener.

No. The listener only gets what the Java task logs as part of its internal
functioning. It does not log the *process*'s output. Now, it seems this is
now possible in Ant 1.6.2 by using the alwayslog attribute. That's what I
wanted to confirm here with my first mail.
> What "redirector" do you mean (as Ant has <redirector>s)?

I mean

> >Do you know if there's any way to achieve output logging with
> >Ant 1.5.x?
> Via Ant's logging API - it's in Ant since .... mmmh .... longer than me
> (means more
> than four years) ;-)

Sure and I've used it all over those years... but as the Java task did not
log the process's output it didn't help. But before venturing into having to
change Cargo's dependencies to Ant 1.6.5 (and thus affecting all our users)
I wanted to ensure that this is indeed possible now whether there's
something I don't know about that would allow to log the process's output in
Ant 1.5.x.
> >The reason is that Cargo is a framework and while
> >upgrading to Ant 1.6.x is good for Cargo it's less good for
> >our users as they'll also need to change their dependencies.
> Yes, but maybe they already have a newer version.

Sure. But that's still a change when they'll upgrade to a newer version of

> What about multiple Ant instances? 

That's a potential issue. The only solution I know of is to use a tool like
jarjar to repackage libraries's paackges.

> Inside your framework, Ant is only a
> library.


Thanks Jan


Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface révolutionnaire.

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

View raw message