Thanks a lot. -----Original Message----- From: Keith Hatton [mailto:[EMAIL PROTECTED] 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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]