The following issue has been updated:
Updater: Brett Porter (mailto:[EMAIL PROTECTED])
Date: Thu, 2 Dec 2004 9:52 PM
Changes:
Fix Version changed to 1.1-beta-1
Fix Version changed from 1.1
---------------------------------------------------------------------
For a full history of the issue, see:
http://jira.codehaus.org/browse/MAVEN-520?page=history
---------------------------------------------------------------------
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-beta-1
Versions:
1.0-beta-9
Assignee: Brett Porter
Reporter: Steve Ovens
Created: Thu, 26 Jun 2003 7:24 AM
Updated: Thu, 2 Dec 2004 9:52 PM
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]