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=11048>.
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=11048
Problems under Cygwin when Ant lives in a path with spaces
Summary: Problems under Cygwin when Ant lives in a path with
spaces
Product: Ant
Version: 1.5
Platform: PC
OS/Version: Windows NT/2K
Status: NEW
Severity: Major
Priority: Other
Component: Wrapper scripts
AssignedTo: ant-dev@jakarta.apache.org
ReportedBy: scott_howlett@yahoo.com
Ant wrapper script does not work correctly if Ant lives in a path with spaces
in it (like "c:/program files/ant"). The fix is just to be a little more
careful about always quoting anything derived from $0.
Here is a diff between the 1.5 ant script from v1.5/errata/ and mi fixed
version:
$ diff "d:/broken/ant" "d:/fixed/ant"
47,48c47,48
< PRG=$0
< progname=`basename $0`
---
> PRG="$0"
> progname=`basename "$0"`
52c52,53
< cd `dirname $PRG`
---
> destdir=`dirname "$PRG"`
> cd "$destdir"
60c61,62
< PRG="`dirname $PRG`/$link"
---
> destdir=`dirname "$PRG"`
> PRG="$destdir/$link"
64c66,67
< ANT_HOME=`dirname "$PRG"`/..
---
> destdir=`dirname "$PRG"`
> ANT_HOME="$destdir/.."
--
To unsubscribe, e-mail: <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>
|