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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 06, 2003 7:40 AM
To: [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]