Many people have to deal with this.

Consider a separate project for each architecture
It should have no code and should depend on projects that have the code.
It should have your properties file(s).

You probably will use the assembly plug-in or the shade plug-in to build the artifact since there is nothing to compile.

Ron


On 27/10/2011 5:56 AM, MavenUser8979 wrote:
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-tp4942499p4942499.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]




--
Ron Wheeler
President
Artifact Software Inc
email: [email protected]
skype: ronaldmwheeler
phone: 866-970-2435, ext 102


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

Reply via email to