aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes Ant task to fill a property data based on envirnment Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Ant task to fill a property data based on envirnment" Watch "Ant task to fill a property data based on envirnment" New topic
Author

Ant task to fill a property data based on envirnment

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9243
    
    1

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!


SCJP 1.4, SCWCD 1.4 - Hints for you, SCBCD Hints - Demnachst, SCDJWS - Auch Demnachst
Did a rm -R / to find out that I lost my entire Linux installation!
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5772
    
    7

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


JBoss In Action
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Ant task to fill a property data based on envirnment
 
Similar Threads
How can I find the system IP in ANT?
Ajax and Struts
Large file download(size upto 600MB)
how to call a target in same scope
How to read a property from a properties file in Ant?