werken 2002/06/30 09:19:43 Modified: src/bin maven.bat Log: Attempt to make maven.bat a bit more sane. Revision Changes Path 1.3 +14 -8 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.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- maven.bat 14 Jun 2002 04:57:11 -0000 1.2 +++ maven.bat 30 Jun 2002 16:19:42 -0000 1.3 @@ -1,22 +1,28 @@ @echo off -if "%MAVEN_HOME%" == "" goto error +if "%MAVEN_HOME%" == "" goto error_maven +if "%JAVA_HOME%" == "" goto error_java -set CP= -for %%i in (%MAVEN_HOME%\lib\*.jar) do call cp.bat %%i -set CP=%JAVA_HOME%\lib\tools.jar;%CP% +# java -classpath "%CP%" -Dmaven.home=%MAVEN_HOME% org.apache.maven.app.Maven %* -java -classpath "%CP%" -Dmaven.home=%MAVEN_HOME% org.apache.maven.app.Maven %* +$JAVA_HOME\bin\java -classpath %MAVEN_HOME%\lib\forehead-1.0-beta-1.jar -Dmaven.home=%MAVEN_HOME% -Dtools.jar=%JAVA_HOME%\lib\tools.jar com.werken.forhead.Forehead %* goto end -:error +:error_maven echo ERROR: MAVEN_HOME not found in your environment. echo Please, set the MAVEN_HOME variable in your environment to match the echo location of the Maven installation -:end +goto end + +:error_java -set LOCALCLASSPATH= +echo ERROR: JAVA_HOME not found in your environment. +echo Please, set the JAVA_HOME variable in your environment to match the +echo location of the Java installation +goto end + +:end
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
