File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
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
It's not a secret anymore!