ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 10743] New: - In bin/ant: path for $ANT_LIB incorrect under cygwin in bin/ant
Date Fri, 12 Jul 2002 15:18:22 GMT
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=10743>.
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=10743

In bin/ant: path for $ANT_LIB incorrect under cygwin in bin/ant

           Summary: In bin/ant: path for $ANT_LIB incorrect under cygwin in
                    bin/ant
           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: dderry@acm.org


Running in a cygwin command window in Maven, 'ant install' failed. When I 
investigated I found that the problem was that my constructed classpath had 
entries like 'C:\Jakarta\ant-1.5/lib/ant.jar:C:\Jakarta\ant-
1.5/lib/optional.jar'. These were not being converted by   'CLASSPATH=`cygpath -
-path --windows "$CLASSPATH"`'

I was able to correct this by changing:
# For Cygwin, ensure paths are in UNIX format before anything is touched
if $cygwin ; then
  [ -n "$ANT_HOME" ] &&
    ANT_HOME=`cygpath --unix "$ANT_HOME"`
  [ -n "$JAVA_HOME" ] &&
    JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
  [ -n "$CLASSPATH" ] &&
    CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
fi

to:
# For Cygwin, ensure paths are in UNIX format before anything is touched
if $cygwin ; then
  [ -n "$ANT_HOME" ] &&
    ANT_HOME=`cygpath --unix "$ANT_HOME"`
  [ -n "$ANT_LIB" ] &&
    ANT_LIB=`cygpath --unix "$ANT_LIB"`
  [ -n "$JAVA_HOME" ] &&
    JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
  [ -n "$CLASSPATH" ] &&
    CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
fi


I am not submitting a diff because when I looked in the CVS repository 
(http://cvs.apache.org/viewcvs/jakarta-ant/src/bin/) and there were no files 
there (only in the Attic).

Dave Derry

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message