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. 

Reply via email to