You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Jason Dillon (JIRA)" <ji...@codehaus.org> on 2010/10/30 01:04:06 UTC

[jira] Issue Comment Edited: (MNG-4777) Match property for profile activation against a regex

    [ http://jira.codehaus.org/browse/MNG-4777?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=241498#action_241498 ] 

Jason Dillon edited comment on MNG-4777 at 10/29/10 6:02 PM:
-------------------------------------------------------------

Could also overload the <value> element with [!]~/REGEX/[options] so that if it starts with "\~/" or "\!~/" then treat like a regular expression.

      was (Author: user57):
    Could also overload the <value> element with [!]~/REGEX/[options] so that if it starts with "~/" or "!~/" then treat like a regular expression.
  
> Match property for profile activation against a regex
> -----------------------------------------------------
>
>                 Key: MNG-4777
>                 URL: http://jira.codehaus.org/browse/MNG-4777
>             Project: Maven 2 & 3
>          Issue Type: Improvement
>          Components: Profiles
>    Affects Versions: 2.0.11
>            Reporter: Andreas Ebbert-Karroum
>             Fix For: Issues to be reviewed for 3.x
>
>
> For activating a profile it would be nice, in addition or as a seperate feature to MNG-3328, to match a property not against a specific value but against a regex. In our case, we need to set some properties for some hudson builds. Not only is that setup fragile against job name changes, but also doesn't scale for multiple jobs. IMHO adding a regex matcher would be a nice feature for multiple purposes.
> Old:
> {code:xml}
> <activation>
>   <property>
>     <name>env.JOB_NAME</name>
>     <value>xyz-abc-foo/label=robotframework,maven.browser-profile=firefox,maven.env-profile=dev</value>
>   </property>
> </activation>
> {code}
> New:
> {code:xml}
> <activation>
>   <property>
>     <name>env.JOB_NAME</name>
>     <regex>xyz-abc-foo/.*</regex>
>   </property>
> </activation>
> {code}

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