ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Denis.Sitni...@ubs.com>
Subject RE: Using Ant in Java
Date Thu, 27 Mar 2008 14:44:03 GMT
First of all I tried to find this method..
JavaTask is instance of org.apache.tools.ant.taskdefs.Java class.
This class doesn't have such a method.

Which class should I use? 

-----Original Message-----
From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de] 
Sent: Thursday, March 27, 2008 5:41 PM
To: user@ant.apache.org
Subject: AW: Using Ant in Java

There is an add method which takes an Arg object. 
 
Jan


________________________________

	Von: Denis.Sitnitsa@ubs.com [mailto:Denis.Sitnitsa@ubs.com] 
	Gesendet: Donnerstag, 27. März 2008 15:18
	An: user@ant.apache.org
	Betreff: Using Ant in Java
	
	

	Hi, everybody. 

	I'm using ant in java to run another java application. 
	Here is the example of code: 

	JavaTask runner = new JavaTask(); 
	..... 
	runner.setArgs("--xsdschemaroot=C:/aschemas  --outputdir=C:/obj --language=java --basepath=..");
       
	runner.execute(); 

	It says: 

	[java] The args attribute is deprecated. Please use nested arg elements. 

	How to do this? 
	How to add some child to task? 

	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


Mime
View raw message