I have one  requirement where I want to read properties file based on
configuration.

I have one folder where I have global environment related properties.

e.g. env.properties is having two properties.

SubEnvName=245SolarisMachine
GlobalEnvDir=/apps

Now I have all sub-enviroment related properties inside
${SubEnvName}.properties

e.g.
245SolarisMachine.properties
246SolarisMachine.properties
247SolarisMachine.properties

Now my goal is to read first env.properties file and find environment name.

Using this name I want to load all properties of given sub-env(e.g.
245SolarisMachine.properties
in this case) and do a token replace in some XML file.

But it seems this is too much programatic and cannot be done using Maven.

Any one is having any idea on this.





--
View this message in context: 
http://maven.40175.n5.nabble.com/Reading-property-file-based-on-configuration-tp4942492p4942492.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to