You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2002/09/16 19:20:35 UTC
DO NOT REPLY [Bug 12697] New: -
wrapper script chokes with spaces in cygwin home dir
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=12697>.
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=12697
wrapper script chokes with spaces in cygwin home dir
Summary: wrapper script chokes with spaces in cygwin home dir
Product: Ant
Version: 1.5
Platform: PC
OS/Version: Windows NT/2K
Status: NEW
Severity: Normal
Priority: Other
Component: Wrapper scripts
AssignedTo: ant-dev@jakarta.apache.org
ReportedBy: mikeburr@mindspring.com
I have my Windows home directory (c:\Documents and Settings\mburr\My Documents)
mounted as /home/mburr under cygwin. When the (patched) Ant 1.5 ant wrapper
script sets my home directory in ANT_OPTS:
ANT_OPTS="$ANT_OPTS -Dcygwin.user.home="`cygpath --path --windows "$HOME"`
and then subsequently uses tries to pass it to $JAVACMD, the bash parser splits
$ANT_OPTS after c:\Documents and java winds up trying to load/run a class
named "and".
I am by no means an expert in shell scripts, but I couldn't find any obvious
way to add quotes in/around ANT_OPTS to make this work right.
As a workaround, adding --short-name to the cygpath command generates a path
that does not contain spaces and seems to make things work correctly. Someone
smarter than me can probably come up with a more elegant approach, though.
I have not checked 1.5.1 or 1.6 to see if this problem still exists in those
versions.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>