This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes Adding command to ant build.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Adding command to ant build.xml" Watch "Adding command to ant build.xml" New topic
Author

Adding command to ant build.xml

Shweta Grewal
Ranch Hand

Joined: Apr 03, 2012
Posts: 39
How can I add the following to my javac command in my build.xml file:
-XDignore.symbol.file
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

Use nested <compilerarg> elements. See the <javac> task doc: http://ant.apache.org/manual/Tasks/javac.html


JBoss In Action
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Adding command to ant build.xml
 
Similar Threads
Smiley test
What is your favorite letter?
Congrats Amy!
Where are You ?
Another 'Y' game