You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by De...@ubs.com on 2008/03/25 11:43:32 UTC

Using ant in java

Hello everybody!

I'm using ant in java to launch java application, to compile sources and
to pack the result in jar file.

How can I catch the result of launching java application, for example? I
need to show it on UI.
I have found setError, setOutput methods with the File parameter, but
I'm not sure it's the best solution to look for two files, if they are
grow.

Regards,
Denis.

AW: Using ant in java

Posted by Ja...@rzf.fin-nrw.de.
There are some builtin implementations of redirectors.
Follow the manual of <java> to the redirectors manual page, take the names and search the codebase.

Jan 

> -----Ursprüngliche Nachricht-----
> Von: Denis.Sitnitsa@ubs.com [mailto:Denis.Sitnitsa@ubs.com] 
> Gesendet: Donnerstag, 27. März 2008 08:21
> An: user@ant.apache.org
> Betreff: RE: Using ant in java
> 
> Is there any working example of it? 
> 
> -----Original Message-----
> From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de] 
> Sent: Thursday, March 27, 2008 9:25 AM
> To: user@ant.apache.org
> Subject: AW: Using ant in java
> 
> You could implement a Redirector for catching the output into 
> your GUI.
>  
> Jan
> 
> 
> ________________________________
> 
> 	Von: Denis.Sitnitsa@ubs.com [mailto:Denis.Sitnitsa@ubs.com] 
> 	Gesendet: Dienstag, 25. März 2008 11:44
> 	An: user@ant.apache.org
> 	Betreff: Using ant in java
> 	
> 	
> 
> 	Hello everybody! 
> 
> 	I'm using ant in java to launch java application, to 
> compile sources and to pack the result in jar file. 
> 
> 	How can I catch the result of launching java 
> application, for example? I need to show it on UI. 
> 	I have found setError, setOutput methods with the File 
> parameter, but I'm not sure it's the best solution to look 
> for two files, if they are grow.
> 
> 	Regards, 
> 	Denis. 
> 
> Visit our website at http://www.ubs.com
> 
> This message contains confidential information and is intended only 
> for the individual named.  If you are not the named addressee you 
> should not disseminate, distribute or copy this e-mail.  Please 
> notify the sender immediately by e-mail if you have received this 
> e-mail by mistake and delete this e-mail from your system.
> 	
> E-mails are not encrypted and cannot be guaranteed to be secure or 
> error-free as information could be intercepted, corrupted, lost, 
> destroyed, arrive late or incomplete, or contain viruses.  The sender 
> therefore does not accept liability for any errors or 
> omissions in the 
> contents of this message which arise as a result of e-mail 
> transmission.  
> If verification is required please request a hard-copy version.  This 
> message is provided for informational purposes and should not be 
> construed as a solicitation or offer to buy or sell any securities 
> or related financial instruments.
> 
> 
> ---------------------------------------------------------------------
> 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


RE: Using ant in java

Posted by De...@ubs.com.
Is there any working example of it? 

-----Original Message-----
From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de] 
Sent: Thursday, March 27, 2008 9:25 AM
To: user@ant.apache.org
Subject: AW: Using ant in java

You could implement a Redirector for catching the output into your GUI.
 
Jan


________________________________

	Von: Denis.Sitnitsa@ubs.com [mailto:Denis.Sitnitsa@ubs.com] 
	Gesendet: Dienstag, 25. März 2008 11:44
	An: user@ant.apache.org
	Betreff: Using ant in java
	
	

	Hello everybody! 

	I'm using ant in java to launch java application, to compile sources and to pack the result in jar file. 

	How can I catch the result of launching java application, for example? I need to show it on UI. 
	I have found setError, setOutput methods with the File parameter, but I'm not sure it's the best solution to look for two files, if they are grow.

	Regards, 
	Denis. 

Visit our website at http://www.ubs.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.
	
E-mails are not encrypted and cannot be guaranteed to be secure or 
error-free as information could be intercepted, corrupted, lost, 
destroyed, arrive late or incomplete, or contain viruses.  The sender 
therefore does not accept liability for any errors or omissions in the 
contents of this message which arise as a result of e-mail transmission.  
If verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities 
or related financial instruments.


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


AW: Using ant in java

Posted by Ja...@rzf.fin-nrw.de.
You could implement a Redirector for catching the output into your GUI.
 
Jan


________________________________

	Von: Denis.Sitnitsa@ubs.com [mailto:Denis.Sitnitsa@ubs.com] 
	Gesendet: Dienstag, 25. März 2008 11:44
	An: user@ant.apache.org
	Betreff: Using ant in java
	
	

	Hello everybody! 

	I'm using ant in java to launch java application, to compile sources and to pack the result in jar file. 

	How can I catch the result of launching java application, for example? I need to show it on UI. 
	I have found setError, setOutput methods with the File parameter, but I'm not sure it's the best solution to look for two files, if they are grow.

	Regards, 
	Denis.