ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject cvs commit: jakarta-ant/src/script ant
Date Tue, 08 May 2001 01:24:49 GMT
jon         01/05/07 18:24:49

  Modified:    src/script ant
  Log:
  this makes ant work with jikes on OSX
  
  i also generalized the case statement for figuring out the OS type
  
  Revision  Changes    Path
  1.4       +17 -3     jakarta-ant/src/script/ant
  
  Index: ant
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/script/ant,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ant	2001/01/31 09:42:04	1.3
  +++ ant	2001/05/08 01:24:49	1.4
  @@ -4,14 +4,16 @@
     . $HOME/.antrc
   fi
   
  -# Cygwin support.  $cygwin _must_ be set to either true or false.
  +# OS specific support.  $var _must_ be set to either true or false.
  +cygwin=false;
  +darwin=false;
   case "`uname`" in
     CYGWIN*) cygwin=true ;;
  -  *) cygwin=false ;;
  +  Darwin*) darwin=true ;;
   esac
   
   # For Cygwin, ensure paths are in UNIX format before anything is touched
  -if $cygwin; then
  +if $cygwin ; then
     [ -n "$ANT_HOME" ] &&
       ANT_HOME=`cygpath --unix "$ANT_HOME"`
     [ -n "$JAVA_HOME" ] &&
  @@ -81,6 +83,18 @@
     if test -f $JAVA_HOME/lib/classes.zip ; then
       LOCALCLASSPATH=$LOCALCLASSPATH:$JAVA_HOME/lib/classes.zip
     fi
  +
  +  # OSX hack to make Ant work with jikes
  +  if $darwin ; then
  +  OSXHACK="/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Classes"
  +  if [ -d ${OSXHACK} ] ; then
  +    for i in ${OSXHACK}/*.jar
  +    do
  +      JIKESPATH=$JIKESPATH:$i
  +    done
  +  fi
  +  fi
  +
   else
     echo "Warning: JAVA_HOME environment variable is not set."
     echo "  If build fails because sun.* classes could not be found"
  
  
  

Mime
View raw message