jakarta-regexp-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gho...@apache.org
Subject cvs commit: jakarta-regexp/build run-tests.bat
Date Tue, 10 Apr 2001 11:29:10 GMT
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=
  
  
  

Mime
View raw message