[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ant-user
Subject:    RE: Using Ant in Java
From:       <Denis.Sitnitsa () ubs ! com>
Date:       2008-03-27 14:49:32
Message-ID: 6F390097E4789445AB7C497517BE93E50A0EA113 () NLDNC106PEX1 ! ubsw ! net
[Download RAW message or body]

Thanks a lot. 

-----Original Message-----
From: Keith Hatton [mailto:khatton@axiomsystems.com] 
Sent: Thursday, March 27, 2008 5:48 PM
To: Ant Users List
Subject: RE: Using Ant in Java

There is a createArg() method which sounds like what you want.
The manual included in the Ant download has API docs for all the tasks, as well as \
some general guidance for programming to the API.

Hope this helps
Keith


-----Original Message-----
From: Denis.Sitnitsa@ubs.com [mailto:Denis.Sitnitsa@ubs.com]
Sent: 27 March 2008 14:44
To: user@ant.apache.org
Subject: RE: Using Ant in Java


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


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

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic