You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by rundmsef <ru...@gmail.com> on 2008/07/16 17:34:17 UTC
Loading different properties files
I have used Mavens filtering mechanism to substitute test vs. production
properties in my packaged web application with no problem. However, I would
like to be able to not only substitute values within the properties files,
but also substitute different versions of the properties files themselves.
For example, I am using Spring Framework in my application. I would like
the ability to package application-context-test.xml or
application-context-production.xml depending on my target environment. Can
Maven support this concept, or am I thinking about this all wrong?
Thanks.
--
View this message in context: http://www.nabble.com/Loading-different-properties-files-tp18490253p18490253.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Loading different properties files
Posted by Martin Höller <ma...@xss.co.at>.
Hi!
On Wednesday 16 July 2008 rundmsef wrote:
> I have used Mavens filtering mechanism to substitute test vs.
> production properties in my packaged web application with no problem.
> However, I would like to be able to not only substitute values within the
> properties files, but also substitute different versions of the
> properties files themselves.
Don't know if this is the best solution, but you could eventually try to use
profiles to configure the resource plugin with different resource path.
hth,
- martin