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=17159>. 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=17159 The ant script cannot find its home Summary: The ant script cannot find its home Product: Ant Version: 1.5.1 Platform: PC OS/Version: Linux Status: NEW Severity: Normal Priority: Other Component: Wrapper scripts AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] The ant script tries to find out its home by looking at the path of the file it is linked to (when it is a link) in line 57 of the script ant. If I understand correctly, the check is for a local link (./ant-some-version) versus a complete path (/some-path/ant-some-version). In my installation it is a relative link (../../relative-path/ant) and the script tries that (../../relative-path) as the ANT_HOME, which fails. Solution: Change the following: <pre> if expr "$link" : '.*/.*' > /dev/null; then PRG="$link" else PRG=`dirname "$PRG"`"/$link" fi </pre> With the following: <pre> if expr "$link" : '.*/.*' > /dev/null; then if [ -d ${link}/. ] ; then PRG="$link" else # Most probably it is a relative link ... PRG=`dirname "$PRG"`"/$link" fi else PRG=`dirname "$PRG"`"/$link" fi </pre>