Hi all,

I had a look at this one, and solving it does not seem so easy.
In fact, the problem is simple: the user is trying to replace the match
with an empty String, which seems a valid request to me.

The thing is: Maven plugin manager does not seem to make any difference
between an absent tag and one specified with no value
(<replacement></replacement>).

I guess there's the following possibilities about that request:

   1. replace the *required=true* attribute with* defaultValue="" *
      - this would fulfill the need of having an empty replacement, but
      having just forgotten the <replacement> tag would become undetectable
      2. define a special constant like "[MBHNULL]" meaning empty String.
   Seems a bit convoluted and not very intuitive to use without having read
   the doc.
   3. having a third tag like <emptyReplacement /> to use instead of
   <replacement>. But this sounds as great as solution 2.

I guess the most intuitive way to go is solution 1. I'll go that way if
no-one objects.

Cheers


2013/3/18 Baptiste Mathus (JIRA) <[email protected]>

>        Baptiste 
> Mathus<https://jira.codehaus.org/secure/ViewProfile.jspa?name=baptiste>assigned
>  [image:
> Bug] MBUILDHELPER-53 <https://jira.codehaus.org/browse/MBUILDHELPER-53>to 
> Baptiste
> Mathus <https://jira.codehaus.org/secure/ViewProfile.jspa?name=baptiste>
>  *regex-property goal should allow an empty 
> replacement*<https://jira.codehaus.org/browse/MBUILDHELPER-53>
>        *Change By:*  Baptiste 
> Mathus<https://jira.codehaus.org/secure/ViewProfile.jspa?name=baptiste>(18/Mar/13
>  10:46 AM)
> *Assignee:*  Baptiste Mathus       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
>



-- 
Baptiste <Batmat> MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor !

Reply via email to