ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kendall Collett" <kcoll...@convio.com>
Subject Re: Classpath problem with 1.5 "ant" on Win2000, tcsh
Date Wed, 10 Jul 2002 20:42:33 GMT
In the beta, LOCALCLASSPATH is augmented using :

  [...]

  if $cygwin ; then
  [ -n "$ANT_HOME" ] &&
    ANT_HOME=`cygpath --unix "$ANT_HOME"`
    [...]
  fi

  [...]

  DIRLIBS="${ANT_HOME}"/lib
  for i in "${DIRLIBS}"/*.jar

  [...]

In the release, LOCALCLASSPATH is built up using:

  [...]

  ANT_LIB=${ANT_HOME}/lib

  if $cygwin ; then
  [ -n "$ANT_HOME" ] &&
    ANT_HOME=`cygpath --unix "$ANT_HOME"`
    [...]
  fi


  [...]

  for i in "${ANT_LIB}"/*.jar

  [...]

The problem seems to be that ANT_LIB is set using the "NT" version of
ANT_HOME.
This results in a different in how the Ant jars appear within the
"pre-cygpath" LOCALCLASSPATH.  In the beta, the Ant jars appear as:


/Ant/lib/xml-apis.jar:/Ant/lib/xercesImpl.jar:/Ant/lib/optional.jar:/Ant/lib
/ant.jar:[...]

In the release, the Ant jars appear as:


C:\Ant/lib/xml-apis.jar:C:\Ant/lib/xercesImpl.jar:C:\Ant/lib/optional.jar:C:
\Ant/lib/ant.jar:[...]

This difference affects the behavior of cygpath.

I made the following change to the ant script, and it seemed to fix things
(for my environment):

--- ant.orig Wed Jul 10 15:34:46 2002
+++ ant Wed Jul 10 15:34:48 2002
@@ -69,9 +69,6 @@
   cd $saveddir
 fi

-# set ANT_LIB location
-ANT_LIB=${ANT_HOME}/lib
-
 # For Cygwin, ensure paths are in UNIX format before anything is touched
 if $cygwin ; then
   [ -n "$ANT_HOME" ] &&
@@ -81,6 +78,9 @@
   [ -n "$CLASSPATH" ] &&
     CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
 fi
+
+# set ANT_LIB location
+ANT_LIB=${ANT_HOME}/lib

 if [ -z "$JAVACMD" ] ; then
   if [ -n "$JAVA_HOME"  ] ; then

----- Original Message -----
From: "Diane Holt" <holtdl@yahoo.com>
To: "Ant Users List" <ant-user@jakarta.apache.org>
Sent: Wednesday, July 10, 2002 14:21
Subject: Re: Classpath problem with 1.5 "ant" on Win2000, tcsh


> --- Kendall Collett <kcollett@convio.com> wrote:
> > CYGWIN_NT-5.0
>
> In that case (no pun intended :), "cygwin" should be getting set, and all
> the 'cygpath' stuff at the end should be getting done.
>
> Diane
>
> =====
> (holtdl@yahoo.com)
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Sign up for SBC Yahoo! Dial - First Month Free
> http://sbc.yahoo.com
>
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
>



--
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