ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject cvs commit: jakarta-ant/src/script ant
Date Fri, 09 Aug 2002 14:10:01 GMT
bodewig     2002/08/09 07:10:01

  Modified:    src/script Tag: ANT_15_BRANCH ant
  Log:
  Deal with spaces in JIKESPATH.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.19.2.8  +15 -11    jakarta-ant/src/script/ant
  
  Index: ant
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/script/ant,v
  retrieving revision 1.19.2.7
  retrieving revision 1.19.2.8
  diff -u -r1.19.2.7 -r1.19.2.8
  --- ant	9 Aug 2002 07:58:43 -0000	1.19.2.7
  +++ ant	9 Aug 2002 14:10:00 -0000	1.19.2.8
  @@ -49,7 +49,7 @@
     saveddir=`pwd`
   
     # need this for relative symlinks
  -  cd `dirname $PRG`
  +  cd `dirname "$PRG"`
     
     while [ -h "$PRG" ] ; do
       ls=`ls -ld "$PRG"`
  @@ -162,14 +162,6 @@
     echo "  to the installation directory of java."
   fi
   
  -# supply JIKESPATH to Ant as jikes.class.path
  -if [ -n "$JIKESPATH" ] ; then
  -  if $cygwin ; then
  -    JIKESPATH=`cygpath --path --windows "$JIKESPATH"`
  -  fi
  -  ANT_OPTS="$ANT_OPTS -Djikes.class.path=$JIKESPATH"
  -fi
  -
   # Allow Jikes support (off by default)
   if $usejikes; then
     ANT_OPTS="$ANT_OPTS -Dbuild.compiler=jikes"
  @@ -182,8 +174,20 @@
     CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
     LOCALCLASSPATH=`cygpath --path --windows "$LOCALCLASSPATH"`
     CYGHOME=`cygpath --path --windows "$HOME"`
  -  "$JAVACMD" -classpath "$LOCALCLASSPATH" -Dant.home="${ANT_HOME}" $ANT_OPTS -Dcygwin.user.home="$CYGHOME"
org.apache.tools.ant.Main $ANT_ARGS "$@"
  +fi
  +
  +if [ -n "$CYGHOME" ]; then
  +  if [ -n "$JIKESPATH" ]; then
  +    JIKESPATH=`cygpath --path --windows "$JIKESPATH"`
  +    "$JAVACMD" -classpath "$LOCALCLASSPATH" -Dant.home="${ANT_HOME}" -Djikes.class.path="$JIKESPATH"
-Dcygwin.user.home="$CYGHOME" $ANT_OPTS org.apache.tools.ant.Main $ANT_ARGS "$@"
  +  else
  +    "$JAVACMD" -classpath "$LOCALCLASSPATH" -Dant.home="${ANT_HOME}" -Dcygwin.user.home="$CYGHOME"
$ANT_OPTS org.apache.tools.ant.Main $ANT_ARGS "$@"
  +  fi
   else
  -  "$JAVACMD" -classpath "$LOCALCLASSPATH" -Dant.home="${ANT_HOME}" $ANT_OPTS org.apache.tools.ant.Main
$ANT_ARGS "$@"
  +  if [ -n "$JIKESPATH" ]; then
  +    "$JAVACMD" -classpath "$LOCALCLASSPATH" -Dant.home="${ANT_HOME}" -Djikes.class.path="$JIKESPATH"
$ANT_OPTS org.apache.tools.ant.Main $ANT_ARGS "$@"
  +  else
  +    "$JAVACMD" -classpath "$LOCALCLASSPATH" -Dant.home="${ANT_HOME}" $ANT_OPTS org.apache.tools.ant.Main
$ANT_ARGS "$@"
  +  fi
   fi
   
  
  
  

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