Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ant integration with Eclipse [Build.Properties]

 
John Vergis
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 539
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 539
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic