RSS

Read a property file in Ant task

03 Oct

This is how we read a whole properties file from an ant task and get individual property by its name

<property file=”path-to-file/filename.properties” />

You can then use any property from this file in any of ant command with just ${propertyName}, it will give the value of that property

 
Leave a comment

Posted by on October 3, 2012 in Ant

 

Tags: , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: