A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java SE 8 for the Really Impatient
this week in the
IDEs, Version Control and other tools
Passing parameters to ant build script in Eclipse
Joined: Jul 02, 2008
Nov 24, 2008 15:25:00
I'm using Eclipse 3.4 on Windows XP. When running an
script, how do I pass in command line arguments, for example "-Denv=dev" like I would if I were running Ant through a shell script? I've tried setting an environment variable ...
but my script is not picking that up. Any help is appreciated, - Dave
Joined: Jun 25, 2001
Nov 25, 2008 06:03:00
Right-Click on the build.xml file. Select "Ant Build...". This brings up a multi-tabbed Ant run dialog.
Set the Parameters using the Parameters textarea box on the Main tab. You can also add classpath items using this dialog if you need to.
Customer surveys are for companies who didn't pay proper attention to begin with.
Don't get me started about those stupid
subject: Passing parameters to ant build script in Eclipse
How do I get Eclipse to recognize my WebLogic server?
using ant script in eclipse
Failed to connect to server
Problem running ant task in Eclipse 3.4
What do I use instead of ANT_OPTS ?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014