Filtering of resources using a templating engine (e.g. Freemarker)
------------------------------------------------------------------

                 Key: MNG-3029
                 URL: http://jira.codehaus.org/browse/MNG-3029
             Project: Maven 2
          Issue Type: New Feature
          Components: Plugin Requests
            Reporter: Sami Dalouche


Resource Filtering is often used to generate different configuration files for 
different environments...

It often makes sense to use different values (debug set to true for the 
development profile, to false for the production environment). However, it is 
sometimes impossible to just switch values, and additional sections need to be 
added or removed depending on the environment.

Additionally, the configuration could sometimes be cleaner by adopting 
conventions based on the environment name. (if the application needs to connect 
to 5 databases whose url depends on the environment name, only part of the 
settings can be required in the .properties files).

That's why I believe it would be nice to have a plugin that would filter a set 
of resources using some templating engine (freemarker, velocity, ...). Each 
resource would then be a freemarker/velocity-compliant file, and the 
possibilities then become endless :)





-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to