Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ant task to fill a property data based on envirnment

 
Joe Harry
Ranch Hand
Posts: 10083
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys,

I guess this might have been asked or solved a dozen of times. What I'm trying to do is to fill the values for a property data xxx.properties based on the environment on which I'm running my ANT script. Any suggestions or pointers to this would be helpful!
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a look at the <condition> task, it sets properties based on any number of conditions including OS type.
http://ant.apache.org/manual/Tasks/condition.html
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic