You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Dominique Devienne <DD...@lgc.com> on 2003/02/06 16:07:02 UTC
RE: DO NOT REPLY [Bug 16841] New: - broken
Can't reply thru BugZilla for some reason... So here it is:
Strange, I've never seem the <if> task in Ant... Or maybe you meant
<condition> (unlikely, since doesn't have an <else>). Maybe you should
report this to wherever you got this <if> task???
FTR, I'm using Ant-Contrib's <if> task, and it works great. Does
<property name="arg1" location="${user.dir}" />
<property name="arg2" location="${basedir}" />
<if><equals arg1="${arg1}" arg2="${arg2}"/><then><echo
message="beep!"/></then></if>
work better? Then it's likely a forward/backward slash problem. --DD
-----Original Message-----
From: bugzilla@apache.org [mailto:bugzilla@apache.org]
Sent: Thursday, February 06, 2003 7:40 AM
To: ant-dev@jakarta.apache.org
Subject: DO NOT REPLY [Bug 16841] New: - <if><equals arg1="${user.dir}"
arg2="${basedir}"/> broken
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16841>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16841
<if><equals arg1="${user.dir}" arg2="${basedir}"/> broken
Summary: <if><equals arg1="${user.dir}" arg2="${basedir}"/>
broken
Product: Ant
Version: 1.6Alpha (nightly)
Platform: PC
URL: http://ant.apache.org/manual/CoreTasks/conditions.html
OS/Version: Windows NT/2K
Status: NEW
Severity: Normal
Priority: Other
Component: Core tasks
AssignedTo: ant-dev@jakarta.apache.org
ReportedBy: hauser@acm.org
Apache Ant version 1.6alpha compiled on February 3 2003
I am running "ant" in the same directory as build.xml. When I echo the two
directories, the string looks exactly equal, but the <if> jumps into the
<else>
part instead of the <then> part ???
---------------------------------------------------------------------
To unsubscribe, e-mail: ant-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: ant-dev-help@jakarta.apache.org