maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Osipov (JIRA)" <j...@codehaus.org>
Subject [jira] Created: (MENFORCER-115) Require property rule evaluates empty property to "true"
Date Tue, 15 Mar 2011 11:18:22 GMT
Require property rule evaluates empty property to "true"
--------------------------------------------------------

                 Key: MENFORCER-115
                 URL: http://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


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 contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message