ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeppe N. Madsen" <jepp...@worldonline.dk>
Subject BUG: ant 1.4.1 startup script on cygwin
Date Wed, 20 Feb 2002 11:21:47 GMT
Hi,

I believe there's a bug in the ant startup script when running under
cygwin:

The CLASSPATH env var is never switched to windows format before
running ant. Since sub tasks that spawn new processes (i.e. antlr)
inherits the CLASSPATH and doesn't use the LOCALCLASSPATH passed to
java, they'll fail. A quick fix is included below:

rgds
Jeppe

*** bin/ant.orig	Wed Feb 20 12:14:42 2002
--- bin/ant	Wed Feb 20 12:14:32 2002
***************
*** 129,133 ****
--- 129,134 ----
    ANT_HOME=`cygpath --path --windows "$ANT_HOME"`
    JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
    LOCALCLASSPATH=`cygpath --path --windows "$LOCALCLASSPATH"`
+   CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
  fi
  $JAVACMD -classpath "$LOCALCLASSPATH" -Dant.home="${ANT_HOME}" $ANT_OPTS org.apache.tools.ant.Main
"$@"


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


Mime
View raw message