maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: jakarta-turbine-maven/src/bin maven.bat
Date Sun, 01 Dec 2002 11:43:48 GMT
dion        2002/12/01 03:43:47

  Modified:    src/bin  maven.bat
  Log:
  Add ECHO override
  Add PAUSE at end feature
  Add User provided maven opts without changing the batch file
  
  Revision  Changes    Path
  1.22      +7 -5      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.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- maven.bat	21 Nov 2002 22:38:29 -0000	1.21
  +++ maven.bat	1 Dec 2002 11:43:47 -0000	1.22
  @@ -1,4 +1,5 @@
   @echo off
  +@if not "%ECHO%" == ""  echo %ECHO%
   
   REM ----------------------------------------------------------------------------
   REM Maven Windows Batch script
  @@ -35,9 +36,9 @@
   
   :setup_args
   if %1a==a goto done_start
  -set MAVEN_CMD_LINE_ARGS=%MAVEN_CMD_LINE_ARGS% %1
  -shift
  -goto setup_args
  +  set MAVEN_CMD_LINE_ARGS=%MAVEN_CMD_LINE_ARGS% %1
  +  shift
  +  goto setup_args
   
   :done_start
   REM -- This label provides a place for the argument list loop to break out 
  @@ -48,13 +49,13 @@
   DIR "%MAVEN_HOME%" /AD | FIND /I /C "%MAVEN_HOME%" > nul
   IF errorlevel 1 goto ErrNoDir
   
  -SET MAVEN_OPTS=-Xmx160m
  +SET MAVEN_SYS_OPTS=-Xmx160m
   REM -- The following values are quoted as MAVEN_HOME might contain spaces
   SET JAVA="%JAVA_HOME%\bin\java"
   SET MAVEN_CLASSPATH="%MAVEN_HOME%\lib\forehead-1.0-beta-4.jar"
   SET MAVEN_MAIN=com.werken.forehead.Forehead
   
  -%JAVA% -Dorg.xml.sax.driver=org.apache.xerces.parsers.SAXParser -Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl
-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
"-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%
  +%JAVA% -Dorg.xml.sax.driver=org.apache.xerces.parsers.SAXParser -Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl
-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
"-Dmaven.home=%MAVEN_HOME%" "-Dtools.jar=%JAVA_HOME%\lib\tools.jar" "-Dforehead.conf.file=%MAVEN_HOME%\bin\forehead.conf"
%MAVEN_SYS_OPTS% %MAVEN_OPTS% -classpath %MAVEN_CLASSPATH% %MAVEN_MAIN% %MAVEN_CMD_LINE_ARGS%
   goto end
   
   :ErrNoEnv
  @@ -86,3 +87,4 @@
   @endlocal
   
   :main_end
  +if not "%PAUSE%" == "" pause
  \ No newline at end of file
  
  
  

Mime
View raw message