[
https://jira.codehaus.org/browse/MBUILDHELPER-34?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=285340#comment-285340
]
Emeka Mosanya commented on MBUILDHELPER-34:
-------------------------------------------
I have attached a diff file containing the changes and the corresponding tests,
see MBUILDHELPER-34-emeka-fix.diff
We have the same problem as we need to remmove the -SNAPSHOT from the
project.version to use it as rpm version.
The patch is quite simple as we just need to make replacement optional and
replace null value by an empty string when required.
This only solve case a) of the original post.
For case b), we need to use elements instead of space characters as
required by XML. I have added a test that proves the point.
Kind regards.
> Enable regex-property goal replacement value to be empty string or space
> character
> ----------------------------------------------------------------------------------
>
> Key: MBUILDHELPER-34
> URL: https://jira.codehaus.org/browse/MBUILDHELPER-34
> Project: Maven 2.x Build Helper Plugin
> Issue Type: Improvement
> Affects Versions: 1.7
> Reporter: dev danke
> Priority: Minor
> Attachments: MBUILDHELPER-34-emeka-fix.diff
>
>
> Please allow a wider range of replacement values, such as:
> a) an empty string
> b) one or more space characters.
> Case (a) is when you just want to remove something from property.
> Case (b) is for adding white space.
> Currently, when either of these values are used, the plugin gives an error:
> [ERROR] Failed to execute goal
> org.codehaus.mojo:build-helper-maven-plugin:1.7:regex-property
> (regex-property) on project android-app: The parameters 'replacement' for
> goal org.codehaus.mojo:build-helper-maven-plugin:1.7:regex-property are
> missing or invalid -> [Help 1]
> The plugin documentation does not define what replacement values are
> invalid:-(
> Thanks for the helpful plugin!
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email