dion 2002/10/01 16:10:23 Modified: src/bin maven.bat Log: Fixes for batch file problems as provided by "Mark Langley" <[EMAIL PROTECTED]> Revision Changes Path 1.19 +5 -4 jakarta-turbine-maven/src/bin/maven.bat Index: maven.bat =================================================================== RCS file: /home/cvs/jakarta-turbine-maven/src/bin/maven.bat,v retrieving revision 1.18 retrieving revision 1.19 diff -u -r1.18 -r1.19 --- maven.bat 1 Oct 2002 08:15:47 -0000 1.18 +++ maven.bat 1 Oct 2002 23:10:23 -0000 1.19 @@ -44,8 +44,9 @@ REM -- and for NT handling to skip to. REM -- Look for MAVEN_HOME, and make sure it exists -if "%MAVEN_HOME%" == "" goto error_maven -if not EXIST "%MAVEN_HOME%" goto error_maven_not_found +if "%MAVEN_HOME%" == "" goto ErrNoEnv +DIR "%MAVEN_HOME%" /AD | FIND /I /C "%MAVEN_HOME%" > nul +IF errorlevel 1 goto ErrNoDir SET MAVEN_OPTS=-Xmx128m REM -- The following values are quoted as MAVEN_HOME might contain spaces @@ -56,7 +57,7 @@ %JAVA% "-Dmaven.home=%MAVEN_HOME%" "-Dtools.jar=%JAVA_HOME%\lib\tools.jar" "-Dforehead.conf.file=%MAVEN_HOME%\bin\forehead.conf" %MAVEN_OPTS% -classpath %MAVEN_CLASSPATH% %MAVEN_MAIN% %MAVEN_CMD_LINE_ARGS% goto end -:error_maven +:ErrNoEnv echo ERROR: MAVEN_HOME not found in your environment. echo Please, set the MAVEN_HOME variable in your environment to match the @@ -64,7 +65,7 @@ goto main_end -:error_maven_not_found +:ErrNoDir echo ERROR: File (%MAVEN_HOME%) MAVEN_HOME not found. echo Please, set the MAVEN_HOME variable in your environment to match the echo location of the Maven installation
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
