jakarta-watchdog-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bergs...@hyperreal.org
Subject cvs commit: jakarta-watchdog/src/bin runtest.bat
Date Sun, 17 Oct 1999 22:35:41 GMT
bergsten    99/10/17 15:35:40

  Modified:    src/bin  runtest.bat
  Log:
  Fixed so it can be used with other servers as described in readme
  
  Revision  Changes    Path
  1.4       +16 -1     jakarta-watchdog/src/bin/runtest.bat
  
  Index: runtest.bat
  ===================================================================
  RCS file: /home/cvs/jakarta-watchdog/src/bin/runtest.bat,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- runtest.bat	1999/10/16 05:40:16	1.3
  +++ runtest.bat	1999/10/17 22:35:39	1.4
  @@ -1,5 +1,5 @@
   @echo off
  -rem $Id: runtest.bat,v 1.3 1999/10/16 05:40:16 mode Exp $
  +rem $Id: runtest.bat,v 1.4 1999/10/17 22:35:39 bergsten Exp $
   rem Startup batch file for servlet runner.
   
   rem This batch file written and tested under Windows NT
  @@ -8,6 +8,12 @@
   set baseDir=%pwd%
   set host=localhost
   set port=8080
  +if "%2"=="" goto nohost
  +set host=%2
  +:nohost:
  +if "%3"=="" goto noport
  +set port=%3
  +:noport:
   set stest=.\conf\servlet-testlist.txt
   set jtest=.\conf\jsp-testlist.txt
   set default=all
  @@ -51,10 +57,15 @@
   set CLASSPATH=%TOM_CLASSPATH%;%CLASSPATH%
   rem -------------------------- end tomcatEnv.bat -------------------------------
   
  +rem Only start Tomcat if no host and port parameters have been specified
  +if not "%port%"=="8080" goto otherserver
  +
   start java org.apache.tomcat.shell.Startup -config .\conf\server-test.xml %1 %2 %3 %4 %5
%6 %7 %8 %9
   
   sleep 25
   
  +:otherserver
  +
   if "%default%"=="servlet" goto servlet
   
   java -Dtest.hostName=%host% -Dtest.port=%port% org.apache.tools.moo.Main -testfile %jtest%
  @@ -66,8 +77,12 @@
   java -Dtest.hostName=%host% -Dtest.port=%port% org.apache.tools.moo.Main -testfile %stest%
   
   :shutdown
  +rem Only shutdown Tomcat if no host and port parameters have been specified
  +if not "%port%"=="8080" goto cleanup
  +
   java org.apache.tomcat.shell.Shutdown %1 %2 %3 %4 %5 %6 %7 %8 %9
   
  +:cleanup
   rem clean up
   
   set CLASSPATH=%cp%
  
  
  

Mime
View raw message