remm        02/01/06 11:53:03

  Modified:    tester/src/bin Tag: tomcat_40_branch tester.sh
  Log:
  - Port patch.
  - Make tester.sh Cygwin friendly.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.3.2.1   +28 -2     jakarta-tomcat-4.0/tester/src/bin/tester.sh
  
  Index: tester.sh
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/tester/src/bin/tester.sh,v
  retrieving revision 1.3
  retrieving revision 1.3.2.1
  diff -u -r1.3 -r1.3.2.1
  --- tester.sh 21 Feb 2001 21:39:50 -0000      1.3
  +++ tester.sh 6 Jan 2002 19:53:03 -0000       1.3.2.1
  @@ -12,7 +12,7 @@
   #
   #   JAVA_HOME     Must point at your Java Development Kit installation.
   #
  -# $Id: tester.sh,v 1.3 2001/02/21 21:39:50 craigmcc Exp $
  +# $Id: tester.sh,v 1.3.2.1 2002/01/06 19:53:03 remm Exp $
   # -----------------------------------------------------------------------------
   
   
  @@ -35,12 +35,38 @@
     exit 1
   fi
   
  +# ----- Cygwin Unix Paths Setup -----------------------------------------------
  +
  +# Cygwin support.  $cygwin _must_ be set to either true or false.
  +case "`uname`" in
  +  CYGWIN*) cygwin=true ;;
  +  *) cygwin=false ;;
  +esac
  + 
  +# For Cygwin, ensure paths are in UNIX format before anything is touched
  +if $cygwin ; then
  +  [ -n "$CATALINA_HOME" ] &&
  +    CATALINA_HOME=`cygpath --unix "$CATALINA_HOME"`
  +    [ -n "$JAVA_HOME" ] &&
  +    JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
  +    [ -n "$ANT_HOME" ] &&
  +    ANT_HOME=`cygpath --unix "$ANT_HOME"`
  +fi
  +
   # ----- Set Up The System Classpath -------------------------------------------
   
   
CP=$CATALINA_HOME/webapps/tester/WEB-INF/lib/tester.jar:$CATALINA_HOME/server/lib/jaxp.jar:$CATALINA_HOME/server/lib/crimson.jar:$ANT_HOME/lib/ant.jar
   
  -echo Using CLASSPATH: $CP
  +# ----- Cygwin Windows Paths Setup --------------------------------------------
   
  +# convert the existing path to windows
  +if $cygwin ; then
  +   CP=`cygpath --path --windows "$CP"`
  +   CATALINA_HOME=`cygpath --path --windows "$CATALINA_HOME"`
  +   JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
  +fi
  +
  +echo Using CLASSPATH: $CP
   
   # ----- Execute The Requested Command -----------------------------------------
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to