I need to retrieve all the properties' names from a properties file before loading it (using Ant)
I'll go into detail to explain the whole process:
A first properties file (let's name it as a.properties) is read and all its properties loaded as project's properties.
#a.properties's contents myvar1=1 myvar2=someTextHereA second file (let's say b.properties) has to be loaded on the project. Some already-set properties can also be contained in this second file, so what we have to do is to update such variables with the value found on it (by means of the
ant-contrib'svartarget)#b.properties's contents myvar1=2 #updated value for a property that's is already set on the project myvar3=1,2,3,4,5,6So the expected subset (from a ANT project's properties perspective) of property/value pairs would be:
myvar1=2 myvar2=someTextHere myvar3=1,2,3,4,5,6
We cannot change the order in which those files are loaded on the project, which would be the easiest way of solving the issue (because of the behavior adopted by Ant when setting's properties)
Any feedback will be highly appreciated.
Regards