Message: The following issue has been closed. Resolver: Brett Porter Date: Mon, 13 Sep 2004 3:10 AM fixed in 1.1 by upgrading to jexl 1.0 / jelly 1.0-beta-4 --------------------------------------------------------------------- View the issue: http://jira.codehaus.org/browse/MAVEN-520 Here is an overview of the issue: --------------------------------------------------------------------- Key: MAVEN-520 Summary: <if test="${empty var}> fails if variable contains "." character Type: Bug Status: Closed Priority: Major Resolution: FIXED Original Estimate: Unknown Time Spent: Unknown Remaining: Unknown Project: maven Components: jelly/ant integration Fix Fors: 1.1 Versions: 1.0-beta-9 Assignee: Brett Porter Reporter: Steve Ovens Created: Thu, 26 Jun 2003 7:24 AM Updated: Mon, 13 Sep 2004 3:10 AM Environment: Win2K, Sun JDK 1.4.1_01 Description: Setting a variable called "a" to a value and then testing it to see if it is empty works as expected (i.e. the variable is NOT empty). If the variable is called "a.b" - i.e. contains a "." character - then the "empty" test will fail. This maven.xml file demonstrates what I mean - in my environment it reports "single" as NOT being empty, but "two.levels" as being empty. <project default="tag:test-empty" xmlns:j="jelly:core"> <goal name="tag:test-empty"> <j:set var="single" value="${1 == 1}"/> Maven says single = ${single}. Is single empty? Maven says [${empty single}]. <echo message="Flush output"/> <j:set var="two.levels" value="${1 == 1}"/> Maven says two.levels = ${two.levels}. Is two.levels empty? Maven says [${empty two.levels}]. <echo message="Flush output"/> </goal> </project> --------------------------------------------------------------------- JIRA INFORMATION: 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 If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org For additional commands, e-mail: dev-help@maven.apache.org