In our jar project we've got 2 property files. One for testing and one for
production. The one for productions is called spring.properties.production
and the one for testing spring.properties. 

If the environment/system property env is set to "production" I want to copy
spring.properties.production to spring.properties before the project is
packaged, but after the project is tested. So during the test phase the
original test spring.properties is used, but at the package time
spring.properties.production should be renamed and included as
spring.properties.

Any thoughts on how to do this? 

I've tried putting a copy plugin bound to the packageing phase before the
jar plugin, but the jar plugin still gets called first, ignoring my copy.
How do you set priority of plugins within a phase?


--
View this message in context: 
http://www.nabble.com/m2%3A+renaming+file+before+including+in+jar-t1699650.html#a4612430
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to