maven-m2-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject cvs commit: maven-components m2-bootstrap-all.sh
Date Mon, 11 Apr 2005 13:07:33 GMT
brett       2005/04/11 06:07:33

  Modified:    .        m2-bootstrap-all.sh
  Log:
  cygwin stuff
  
  Revision  Changes    Path
  1.8       +14 -1     maven-components/m2-bootstrap-all.sh
  
  Index: m2-bootstrap-all.sh
  ===================================================================
  RCS file: /home/cvs/maven-components/m2-bootstrap-all.sh,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- m2-bootstrap-all.sh	1 Apr 2005 16:03:42 -0000	1.7
  +++ m2-bootstrap-all.sh	11 Apr 2005 13:07:32 -0000	1.8
  @@ -3,8 +3,21 @@
   # Check to make sure  JAVA_HOME is set
   [ -z $JAVA_HOME ] && echo && echo 'You must set $JAVA_HOME to use mboot!'
&& echo && exit 1
   
  +JAVACMD=$JAVA_HOME/bin/java
  +
   ARGS="$@"
   
  +# OS specific support.  $var _must_ be set to either true or false.
  +cygwin=false;
  +case "`uname`" in
  +  CYGWIN*) cygwin=true ;;
  +esac
  +
  +# For Cygwin, ensure paths are in UNIX format before anything is touched
  +if $cygwin ; then
  +  [ -n "$M2_HOME" ] && M2_HOME=`cygpath -w "$M2_HOME"`
  +fi
  +
   if [ ! -z "$M2_HOME" ]; then
     ARGS="$ARGS -Dmaven.home=$M2_HOME"
   fi
  @@ -26,7 +39,7 @@
     echo " Building maven2 components ... "
     echo "-----------------------------------------------------------------------"  
   
  -  $JAVA_HOME/bin/java $ARGS $MAVEN_OPTS -jar mboot.jar
  +  $JAVACMD $ARGS $MAVEN_OPTS -jar mboot.jar
     ret=$?; if [ $ret != 0 ]; then exit $ret; fi
   )
   ret=$?; if [ $ret != 0 ]; then exit $ret; fi
  
  
  

Mime
View raw message