You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/07/27 22:08:00 UTC

[jira] [Commented] (MNG-5909) Activating a profile based on the existence of multiple files is not possible

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

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

lbndev commented on issue #92: MNG-5909 : Add combined expression evaluator to file activation property
URL: https://github.com/apache/maven/pull/92#issuecomment-408550574
 
 
   Hello @kwin,
   
   Wow, resurrecting an old request !
   I rebased my change on branch "pre-reset-master" (see branch MNG-5909-oldmaster), then I cherry-picked in on top of the new master, fixing conflicts.
   
   It used to work on the initial version of this PR (almost 2 years ago), but I should take time to build & test this new version just to make sure it plays nicely with all the other changes in maven over the last 2 years. Maybe I'll find time during the weekend.
   
   Thanks for your interrest in this PR
   
   Loïc

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> Activating a profile based on the existence of multiple files is not possible
> -----------------------------------------------------------------------------
>
>                 Key: MNG-5909
>                 URL: https://issues.apache.org/jira/browse/MNG-5909
>             Project: Maven
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 3.3.3
>            Reporter: Konrad Windszus
>            Priority: Major
>
> Currently each type of activation (os, jdk, file, property) can only be used once for activating a single profile.
> Therefore it is not possible to activate a profile in case two different files are existing, although since Maven 3.2.2 (MNG-4565) it is possible to combine multiple activations of different types.
> Multiple  {{file}} or {{property}} should therefore be supported to allow to express something like:
> Enable {{profileA}} in case both {{fileA}} and {{fileB}} do exists
> For {{jdk}} and {{os}} this is less relevant because all conditions are combined with AND.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)