You are viewing a plain text version of this content. The canonical link for it is here.
Posted to regexp-dev@jakarta.apache.org by gh...@apache.org on 2001/04/10 13:29:10 UTC

cvs commit: jakarta-regexp/build run-tests.bat

gholam      01/04/10 04:29:10

  Added:       build    run-tests.bat
  Log:
  added a run-test.bat script. Cant test though as i dont run windows.
  
  Revision  Changes    Path
  1.1                  jakarta-regexp/build/run-tests.bat
  
  Index: run-tests.bat
  ===================================================================
  @echo off
  
  REM --------------------------------------------
  REM No need to edit anything past here
  REM --------------------------------------------
  
  :final
  
  set _CLASSPATH=%CLASSPATH%
  
  if "%JAVA_HOME%" == "" goto javahomeerror
  if exist %JAVA_HOME%\lib\tools.jar set CLASSPATH=%CLASSPATH%;%JAVA_HOME%\lib\tools.jar
  
  REM Dont use windows any more so someone will need to test this.
  REM and make it work for varying versions.
  set CLASSPATH=%CLASSPATH%;..\bin\jakarta-regexp-1.3-dev.jar
  
  echo %CLASSPATH%
  
  %JAVA_HOME%\bin\java.exe org.apache.regexp.RETest %1 %2
  goto end
  
  REM -----------ERROR-------------
  :javahomeerror
  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 Virtual Machine you want to use."
  
  :end
  set BUILDFILE=%_BUILDFILE%
  set _BUILDFILE=
  set CLASSPATH=%_CLASSPATH%
  set _CLASSPATH=