maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MNG-4777) Match property for profile activation against a regex
Date Fri, 20 May 2016 06:08:12 GMT

    [ https://issues.apache.org/jira/browse/MNG-4777?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15292782#comment-15292782
] 

ASF GitHub Bot commented on MNG-4777:
-------------------------------------

Github user vjkoskela commented on the pull request:

    https://github.com/apache/maven/pull/80#issuecomment-220525039
  
    The use case we had was to activate a different profile for snapshot and release versions
in order to release to a custom artifact store using the http wagon plugin. We couldn't match
directly against the version so we pulled it into a property which enabling matching with
these changes.


> Match property for profile activation against a regex
> -----------------------------------------------------
>
>                 Key: MNG-4777
>                 URL: https://issues.apache.org/jira/browse/MNG-4777
>             Project: Maven
>          Issue Type: Improvement
>          Components: Profiles
>    Affects Versions: 2.0.11
>            Reporter: Andreas Ebbert-Karroum
>         Attachments: regex-project-property-profile-activator.patch
>
>
> 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 was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message