File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Ant and system properties" Watch "Ant and system properties" New topic
Author

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
-Djava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol
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:

Craig
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: http://aspose.com/file-tools
 
subject: Ant and system properties
 
Similar Threads
Ant and Netbeans
Passing arguments through the command line
Preventing output of junit*.properties
Ant: print all System properties.
About version.txt