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/maven-core/src/bin m2.bat
Date Fri, 24 Sep 2004 14:48:18 GMT
brett       2004/09/24 07:48:18

  Modified:    maven-core/src/bin m2.bat
  Log:
  work without M2_HOME - base on location of batch file
  
  Revision  Changes    Path
  1.3       +4 -1      maven-components/maven-core/src/bin/m2.bat
  
  Index: m2.bat
  ===================================================================
  RCS file: /home/cvs/maven-components/maven-core/src/bin/m2.bat,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- m2.bat	8 Sep 2004 08:03:52 -0000	1.2
  +++ m2.bat	24 Sep 2004 14:48:18 -0000	1.3
  @@ -20,9 +20,9 @@
   @REM
   @REM Required ENV vars:
   @REM JAVA_HOME - location of a JDK home dir
  -@REM M2_HOME - location of maven2's installed home dir
   @REM
   @REM Optional ENV vars
  +@REM M2_HOME - location of maven2's installed home dir
   @REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
   @REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending
   @REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
  @@ -65,6 +65,9 @@
   goto end
   
   :chkMHome
  +if not "%M2_HOME%"=="" goto valMHome
  +
  +if "%OS%"=="Windows_NT" SET M2_HOME=%~dp0\..
   if not "%M2_HOME%"=="" goto valMHome
   
   echo.
  
  
  

Mime
View raw message