This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes Ant and system properties Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Ant and system properties" Watch "Ant and system properties" New topic

Ant and system properties

Carl Parrish
Ranch Hand

Joined: May 03, 2002
Posts: 60
Does anyone know how to set a java system properties from within ant? To be specific I want to do the following
Craig Demyanovich
Ranch Hand

Joined: Sep 25, 2000
Posts: 173
View the Ant documentation for the java task (a built-in task). It permits nested jvmarg tasks, which are specifically described with examples in the link to command-line arguments. Note that these arguments are ignored unless the VM is forked. Here's an example from one of my projects for starting the JBoss application server:

Carl Parrish
Ranch Hand

Joined: May 03, 2002
Posts: 60
Thank you, Thank you.
I'll try that out now.
I agree. Here's the link:
subject: Ant and system properties
jQuery in Action, 3rd edition