jakarta-watchdog-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@locus.apache.org
Subject cvs commit: jakarta-watchdog/src/bin watchdog.sh watchdog.bat
Date Wed, 01 Mar 2000 03:33:08 GMT
arun        00/02/29 19:33:08

  Modified:    src/bin  watchdog.bat
  Added:       src/bin  watchdog.sh
  Log:
  Removing dependencies on Tomcat.
  
  Revision  Changes    Path
  1.2       +4 -0      jakarta-watchdog/src/bin/watchdog.bat
  
  Index: watchdog.bat
  ===================================================================
  RCS file: /home/cvs/jakarta-watchdog/src/bin/watchdog.bat,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- watchdog.bat	2000/03/01 02:33:10	1.1
  +++ watchdog.bat	2000/03/01 03:33:08	1.2
  @@ -39,5 +39,9 @@
   set PORT=
   set HOST=
   
  +goto end
  +
   :exit
   echo usage: %0 {all/jsp/servlet} [serverhost] [serverport]
  +
  +:end
  \ No newline at end of file
  
  
  
  1.1                  jakarta-watchdog/src/bin/watchdog.sh
  
  Index: watchdog.sh
  ===================================================================
  #! /bin/sh
  #!/bin/sh
  #
  
  # Shell script to run watchdog test suite
   
  # This script is known to work with the standard Korn Shell under
  # Solaris and the MKS Korn shell under Windows.
  
  
  if [ "$1" = "" ]; then
      echo usage: "$0 {all|jsp|servlet} [serverhost] [serverport]"
      exit 0
  fi
  
  
  host=localhost
  port=8080
  default=$1
  
  
  baseDir=..
  
  miscJars=${baseDir}/lib/moo.jar:${baseDir}/lib/testdriver.jar:${baseDir}/lib/client.jar
  appJars=${miscJars}:${baseDir}/lib/xml.jar:${baseDir}/lib/ant.jar
  sysJars=${JAVA_HOME}/lib/tools.jar
  
  appClassPath=${appJars}
  cp=$CLASSPATH
  
  CLASSPATH=${appClassPath}:${sysJars}
  
  export CLASSPATH
  
  if [ "$cp" != "" ]; then
      CLASSPATH=${CLASSPATH}:${cp}
      export CLASSPATH
  fi
  
  echo Using classpath: ${CLASSPATH}
  echo
  
  
  
  if [ "${default}" = jsp -o "${default}" = all ];then
      java org.apache.tools.ant.Main -Dport=${PORT} -Dhost=${HOST} -Dwatchdog.home=\
           $WATCHDOG_HOME -f ${WATCHDOG_HOME}/conf/jsp.xml jsp-test
  fi
  
  if [ "${default}" = servlet -o "${default}" = all ];then
      java org.apache.tools.ant.Main -Dtest.port=${PORT} -Dtest.hostname=${HOST}=\
           -Dwatchdog.home=${WATCHDOG_HOME} -f $WATCHDOG_HOME/conf/servlet.xml servlet-test
  fi
  
  if [ "$cp" != ""]; then
      CLASSPATH=${cp}
      export CLASSPATH
  else
      unset CLASSPATH
  fi
  
  
  

Mime
View raw message