maven-issues mailing list archives

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


Robert Scholte closed MENFORCER-115.

    Resolution: Won't Fix
      Assignee: Robert Scholte

This is default Maven behavior (see [MavenCli|]).
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:
>             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:

View raw message