ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent Massol" <vinc...@massol.net>
Subject RE: Logging output from the Java task?
Date Tue, 27 Jun 2006 15:32:55 GMT


> -----Original Message-----
> From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de]
> 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:vincent@massol.net]
> >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: user-unsubscribe@ant.apache.org For
> >additional commands, e-mail: user-help@ant.apache.org
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org


	

	
		
___________________________________________________________________________ 
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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message