| Author |
Ant integration with Eclipse [Build.Properties]
|
John Vergis
Ranch Hand
Joined: Feb 24, 2004
Posts: 59
|
|
Hi, I am using build.xml in Eclipse to build my project, I am making use of the Ant Plugin provided and also configured it as an External Tool. It doesn't read the properties file. How do i specify the argument "propertyfile" while running from Eclipse. [Run->External Tools -> MyBuild] where myBuild is the external tool which I configured for the Ant Build. Thanks John
|
 |
Tim West
Ranch Hand
Joined: Mar 15, 2004
Posts: 539
|
|
I'm not sure if you're already doing this (in which case it'll sound like some really stupid advice), but have you got something like this in your build file? Cheers, --Tim (edited to make <s show up properly...) [ May 04, 2004: Message edited by: Tim West ]
|
 |
John Vergis
Ranch Hand
Joined: Feb 24, 2004
Posts: 59
|
|
Hi Tim Thanks for the response. At present I am using that way, i have mentioned my property file in the build.xml, I don't want to do that, i would like to set it as an argument, the way when we run from command prompt like c:\blah>ant -propertyfile build.properties <target> Any idea to set it in Eclipse while running the build.xml. Thanks John
|
 |
Tim West
Ranch Hand
Joined: Mar 15, 2004
Posts: 539
|
|
If you go to the External Tools window where you set up your Ant targets, you can give command-line arguments in the Main tab -> arguments textbox. I added -propertyfile "foo.properties", and got the Ant response
Could not load property file foo.properties: d:\workspace\timothyw_TMSSUN_DEV\tmssunvob\Implementation\foo.properties (The system cannot find the file specified)
So I guess it's working --Tim
|
 |
 |
|
|
subject: Ant integration with Eclipse [Build.Properties]
|
|
|