This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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
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?
--Tim (edited to make <s show up properly...) [ May 04, 2004: Message edited by: Tim West ]
Joined: Feb 24, 2004
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
Joined: Mar 15, 2004
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)