patrickl    02/03/19 10:21:14

  Modified:    catalina/src/bin catalina.sh
  Log:
  Add JPDA_TRANSPORT environment variable
  
  Revision  Changes    Path
  1.28      +8 -2      jakarta-tomcat-4.0/catalina/src/bin/catalina.sh
  
  Index: catalina.sh
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/bin/catalina.sh,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- catalina.sh       18 Mar 2002 17:37:51 -0000      1.27
  +++ catalina.sh       19 Mar 2002 18:21:14 -0000      1.28
  @@ -22,6 +22,9 @@
   #   JAVA_OPTS       (Optional) Java runtime options used when the "start",
   #                   "stop", or "run" command is executed.
   #
  +#   JPDA_TRANSPORT  (Optional) JPDA transport used when the "jpda start"
  +#                   command is executed. The default is "dt_socket".
  +#
   #   JPDA_ADDRESS    (Optional) Java runtime options used when the "jpda start"
   #                   command is executed. The default is 8000.
   #
  @@ -29,7 +32,7 @@
   #                   (JSSE) installation, whose JAR files will be added to the
   #                   system class path used to start Tomcat.
   #
  -# $Id: catalina.sh,v 1.27 2002/03/18 17:37:51 patrickl Exp $
  +# $Id: catalina.sh,v 1.28 2002/03/19 18:21:14 patrickl Exp $
   # -----------------------------------------------------------------------------
   
   # OS specific support.  $var _must_ be set to either true or false.
  @@ -107,11 +110,14 @@
   echo "Using JAVA_HOME:       $JAVA_HOME"
   
   if [ "$1" = "jpda" ] ; then
  +  if [ -z "$JPDA_TRANSPORT" ]; then
  +    JPDA_TRANSPORT="dt_socket"
  +  fi
     if [ -z "$JPDA_ADDRESS" ]; then
       JPDA_ADDRESS="8000"
     fi
     if [ -z "$JPDA_OPTS" ]; then
  -    JPDA_OPTS="-Xdebug 
-Xrunjdwp:transport=dt_socket,address=$JPDA_ADDRESS,server=y,suspend=n"
  +    JPDA_OPTS="-Xdebug 
-Xrunjdwp:transport=$JPDA_TRANSPORT,address=$JPDA_ADDRESS,server=y,suspend=n"
     fi
     CATALINA_OPTS="$CATALINA_OPTS $JPDA_OPTS"
     shift
  
  
  

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

Reply via email to