[ 
http://jira.codehaus.org/browse/MRRESOURCES-46?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

jieryn updated MRRESOURCES-46:
------------------------------

    Attachment: MRRESOURCES-46.patch

Here is a patch which provides the desired functionality, it also has a test 
case which covers it. I went a slightly different direction than the original 
proposed solution. Instead, this patch provides a new optional parameter 
(defaults to false to preserve current behavior) named 
'includeProjectProperties' which will dump the project's effective properties 
into the properties that get interpolated by Velocity.

Simple, and it works, and it will let me get rid of about 40 lines in one of my 
main corporate POMs. :-D

> project.properties not default provided to velocity for interpolation
> ---------------------------------------------------------------------
>
>                 Key: MRRESOURCES-46
>                 URL: http://jira.codehaus.org/browse/MRRESOURCES-46
>             Project: Maven 2.x Remote Resources Plugin
>          Issue Type: Improvement
>         Environment: [INFO] Maven Version: 3.0-alpha-6
> [INFO] JDK Version: 1.6.0 normalized as: 1.6.0
> [INFO] OS Info: Arch: amd64 Family: unix Name: linux Version: 2.6.32.8
>            Reporter: jieryn
>         Attachments: MRRESOURCES-46.patch
>
>
> http://maven.apache.org/plugins/maven-remote-resources-plugin/process-mojo.html
> The process mojo should pass project.properties by default instead of making 
> the user specify every property to be included for Velocity interpolation. I 
> would suggest that if the plugin detects a configuration option of 
> <properties> then it will fall back to the old behavior of only those 
> properties listed to be interpolated. If no <properties> configuration is 
> specified, then all project.properties are included; secondary, support a 
> <excludeProperties> configuration option to allow filtering of some 
> properties in project.properties.

-- 
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