ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@locus.apache.org
Subject cvs commit: jakarta-ant/src/bin ant
Date Sat, 02 Dec 2000 19:44:30 GMT
donaldp     00/12/02 11:44:30

  Modified:    src/bin  ant
  Log:
  Patched ant to run under Cygwin. Patch supplied by Peter Seibel <peter@javamonkey.com>
  
  Revision  Changes    Path
  1.7       +11 -0     jakarta-ant/src/bin/ant
  
  Index: ant
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/bin/ant,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- ant	2000/08/05 15:30:19	1.6
  +++ ant	2000/12/02 19:44:30	1.7
  @@ -4,6 +4,12 @@
     . $HOME/.antrc
   fi
   
  +# Cygwin support.
  +if [ "$OSTYPE" == 'cygwin32' ]; then
  +  ANT_HOME=`cygpath -u $ANT_HOME`
  +  JAVA_HOME=`cygpath -u $JAVA_HOME`
  +fi
  +
   if [ "$ANT_HOME" = "" ] ; then
     # try to find ANT
     if [ -d /opt/ant ] ; then 
  @@ -65,6 +71,11 @@
     else
       ANT_OPTS=-Djikes.class.path=$JIKESPATH
     fi
  +fi
  +
  +# More Cygwin support
  +if [ "$OSTYPE" == 'cygwin32' ]; then
  +  LOCALCLASSPATH=`cygpath -p -w "$LOCALCLASSPATH"`
   fi
   
   $JAVACMD -classpath $LOCALCLASSPATH -Dant.home=${ANT_HOME} $ANT_OPTS org.apache.tools.ant.Main
$@
  
  
  

Mime
View raw message