> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: mardi 27 juin 2006 17:21
> To: user@ant.apache.org
> Subject: AW: Logging output from the Java task?
> 
> I think upgrading Ant is a good idea ;-)
> Ant 1.6.5 is current, 1.7 is on the pipeline.
> 
> But you could also implement your own logger and catch all Ants output -
> including the <java> stuff.
> http://ant.apache.org/manual/listeners.html

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 know if there's any way to achieve output logging with 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.

Thanks
-Vincent

> >-----Ursprüngliche Nachricht-----
> >Von: Vincent Massol [mailto:[EMAIL PROTECTED]
> >Gesendet: Dienstag, 27. Juni 2006 17:08
> >An: user@ant.apache.org
> >Betreff: Logging output from the Java task?
> >
> >Hi,
> >
> >I'm using Ant programatically in Cargo (to start J2EE
> >containers) and I'd like to be able to log Ant's Java task
> >output to Cargo's logging system.
> >
> >We're currently using Ant 1.5.x but I've seen that there's now
> >an I/O redirector in Ant 1.6.2 which may help. I've also
> >noticed that this redirector can accept a filtechain. Thus I
> >was thinking about moving to Ant
> >1.6.3 and implementing a custom Filter Reader that would log
> >the process's output.
> >
> >Is that the right way to do it? Is there any easier way?
> >
> >Thank you
> >-Vincent
> >
> >
> >
> >
> >
> >
> >_______________________________________________________________
> >____________
> >Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo!
> >Mail et son interface révolutionnaire.
> >http://fr.mail.yahoo.com
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: [EMAIL PROTECTED] For
> >additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]






___________________________________________________________________________
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son 
interface révolutionnaire.
http://fr.mail.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to