From issues-return-85532-apmail-maven-issues-archive=maven.apache.org@maven.apache.org Wed Jun 5 19:46:27 2013 Return-Path: X-Original-To: apmail-maven-issues-archive@minotaur.apache.org Delivered-To: apmail-maven-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B8053100EF for ; Wed, 5 Jun 2013 19:46:27 +0000 (UTC) Received: (qmail 8405 invoked by uid 500); 5 Jun 2013 19:46:27 -0000 Delivered-To: apmail-maven-issues-archive@maven.apache.org Received: (qmail 8370 invoked by uid 500); 5 Jun 2013 19:46:27 -0000 Mailing-List: contact issues-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list issues@maven.apache.org Received: (qmail 8362 invoked by uid 99); 5 Jun 2013 19:46:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Jun 2013 19:46:27 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [63.246.24.159] (HELO codehaus01.managed.contegix.com) (63.246.24.159) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Jun 2013 19:46:23 +0000 Received: from codehaus01 (localhost.localdomain [127.0.0.1]) by codehaus01.managed.contegix.com (Postfix) with ESMTP id 468CBB101C for ; Wed, 5 Jun 2013 14:46:03 -0500 (CDT) Date: Wed, 5 Jun 2013 14:46:03 -0500 (CDT) From: "Robert Scholte (JIRA)" To: issues@maven.apache.org Message-ID: In-Reply-To: References: Subject: [jira] (MENFORCER-115) Require property rule evaluates empty property to "true" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 22cf62d5d84cf5bea94eb3b65e0ebd09 X-Virus-Checked: Checked by ClamAV on apache.org [ 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