maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Scholte (JIRA)" <j...@codehaus.org>
Subject [jira] (MENFORCER-115) Require property rule evaluates empty property to "true"
Date Wed, 05 Jun 2013 19:46:03 GMT

     [ https://jira.codehaus.org/browse/MENFORCER-115?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Robert Scholte closed MENFORCER-115.
------------------------------------

    Resolution: Won't Fix
      Assignee: Robert Scholte

This is default Maven behavior (see [MavenCli|http://maven.apache.org/ref/3.0.5/maven-embedder/xref/org/apache/maven/cli/MavenCli.html#1082]).
This is also the reason why {{-DskipTests}} works, which is short for {{-DskipTests=true}}
or in other words: the value actually set.

IMHO the rule works as expected.
                
> Require property rule evaluates empty property to "true"
> --------------------------------------------------------
>
>                 Key: MENFORCER-115
>                 URL: https://jira.codehaus.org/browse/MENFORCER-115
>             Project: Maven 2.x Enforcer Plugin
>          Issue Type: Bug
>          Components: Standard Rules
>    Affects Versions: 1.0
>            Reporter: Michael Osipov
>            Assignee: Robert Scholte
>
> I want to enforce a property to be set to any value.
> -Dprop=value => correct
> -Dprop= => fails as expected
> -Dprop => not correct
> This is incorrect behavior. The EnforceRuleHelper evaluates the property to "true". This
means that "true" has to be explicitly excluded in the regex. This is ugly.
> There must be an option to enforce an non-empty property.

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

Mime
View raw message