ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anderson, Rob (Global Trade)" <Rob.Ander...@nike.com>
Subject RE: Capture Javac output
Date Wed, 02 Mar 2005 17:21:34 GMT
I would suggest writting a build.xml and running Ant, rather than programming a class to do
your compile. Then it becomes as easy as running a command and capturing the output.

-Rob A

> -----Original Message-----
> From: Andre Dantas Rocha [mailto:ad-rocha@uol.com.br]
> Sent: Wednesday, March 02, 2005 7:50 AM
> To: user
> Subject: Capture Javac output
> 
> 
> Hi,
> 
> I'm compiling some java files using an Ant project:
> 
> Project project = createProject();   
>  Javac javac = (Javac) project.createTask("javac");
> javac.init();
> ...
> javac.perform();
> 
> And would like to capture the output messages in a log file.
> 
> How can I do that?
> 
> Thanks,
> 
> André
>  
> ______________________________________________________________
> ____________
> Acabe com aquelas janelinhas que pulam na sua tela.
> AntiPop-up UOL - É grátis!
> http://antipopup.uol.com.br/
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message