ANT - Retrieve property names and values
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Sarang_Rao
Posted On:   Friday, February 3, 2006 09:41 AM

Hi,

Is there a way I can retrieve all the properties defined in a property file through one of the ant tasks?

I need a list of the properties and I want to be able to iterate over the list get each property name and its value.




Thanks

Sarang

Re: ANT - Retrieve property names and values

Posted By:   Brad_Allan  
Posted On:   Wednesday, April 12, 2006 03:04 AM

Write an Ant task.

bla extends Task{
void execute throws BuildException{

getProject().getProperties();
...do ya thing.
}
}

Re: ANT - Retrieve property names and values

Posted By:   Anonymous  
Posted On:   Monday, February 6, 2006 06:25 AM

The easiest is loading the props with a prefix. But what do you do while iterating?
About | Sitemap | Contact