Issue Type: Improvement Improvement
Affects Versions: 1.7
Assignee: Unassigned
Created: 19/Mar/13 4:12 AM
Description:

I use the build helper maven plugin:regex-property maven plugin to define a maven property with a prefix (the character -) from the parsedVersion.qualifier maven property.
If the parsedVersion.qualifier maven property is not defined, my variable must be set to empty.

After resolving this issue : "regex-property goal should allow an empty replacement (https://jira.codehaus.org/browse/MBUILDHELPER-53)", I have tried to write :

<configuration>
<name>MparsedVersion.qualifier</name>
<value>-$

{parsedVersion.qualifier}

</value>
<regex>-$</regex>
<replacement></replacement>
<failIfNoMatch>false</failIfNoMatch>
</configuration>

This plugin allows to replace an _expression_ in a value to set an another maven property.
Insofar as it tells the plugin does not fail if the regex don't match, we should set the value of the new maven property with the initial value, no ?

Thank's a lot,
Fabien

Project: Maven 2.x Build Helper Plugin
Priority: Major Major
Reporter: PÉRIÉ Fabien
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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

Reply via email to