LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Ant & args for java (https://www.linuxquestions.org/questions/programming-9/ant-and-args-for-java-169147/)

acjt 04-12-2004 10:14 AM

Ant & args for java
 
I'm trying to build my ant file and I want to pass the start class arguments, so this is what I get:

Code:

[java] The args attribute is deprecated. Please use nested arg elements.
So, I change it and do what it says, and get this!
Code:

BUILD FAILED
file:/data/development/java/142153/build.xml:139: The <java> task doesn't support the nested "args" element.

So I'm a little confuzzled :)
Anyone know the answer?

eric.r.turner 04-25-2004 12:01 AM

Without your build.xml file I can't be certain, but I think you need to use an
Code:

<arg>
element for each of your arguments rather than an
Code:

<args>
element.


All times are GMT -5. The time now is 11:50 AM.