You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michał Sobkiewicz (JIRA)" <ji...@apache.org> on 2016/08/10 19:27:20 UTC

[jira] [Commented] (MNGSITE-234) Reversed name, reversed value

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

Michał Sobkiewicz commented on MNGSITE-234:
-------------------------------------------

Is there anyone alive out there?

> Reversed name, reversed value
> -----------------------------
>
>                 Key: MNGSITE-234
>                 URL: https://issues.apache.org/jira/browse/MNGSITE-234
>             Project: Maven Project Web Site
>          Issue Type: Documentation
>            Reporter: Michał Sobkiewicz
>            Priority: Trivial
>              Labels: activation, profile
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> I was able to google how to activate profile when property is NOT PRESENT.
> However, I was unable to find any example on how to activate profile when property is NOT EQUAL to some value.
> It would be great, if both possibilities were documented here: https://maven.apache.org/pom.html#Activation.
> Here's my use case:
> <profile>
>   <id>sign</id>
>   <activation>
>     <property>
>       <name>skipSign</name>
>       <value>!true</value>
>     </property>
>   </activation>
>   ...
> </profile>
> It seems, It works since maven 3.0 or so (I checked commit history).
> Documentation can make that feature to look more "stable".
> Thanks!
> PS. Here are the sources:
> https://git-wip-us.apache.org/repos/asf?p=maven.git;a=blob;f=maven-model-builder/src/main/java/org/apache/maven/model/profile/activation/PropertyProfileActivator.java;hb=HEAD#l64
> https://git-wip-us.apache.org/repos/asf?p=maven.git;a=blob;f=maven-model-builder/src/main/java/org/apache/maven/model/profile/activation/PropertyProfileActivator.java;hb=HEAD#l88



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)