yoavs       2004/11/17 12:06:35

  Modified:    catalina/src/bin Tag: TOMCAT_5_0 catalina.sh setclasspath.sh
                        startup.sh
               webapps/docs Tag: TOMCAT_5_0 changelog.xml
  Log:
  Bugzilla 31132: better -x/-r handling for OS/400
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.13.2.2  +16 -7     jakarta-tomcat-catalina/catalina/src/bin/catalina.sh
  
  Index: catalina.sh
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/bin/catalina.sh,v
  retrieving revision 1.13.2.1
  retrieving revision 1.13.2.2
  diff -u -r1.13.2.1 -r1.13.2.2
  --- catalina.sh       21 Aug 2004 15:49:49 -0000      1.13.2.1
  +++ catalina.sh       17 Nov 2004 20:06:34 -0000      1.13.2.2
  @@ -91,13 +91,22 @@
   fi
   
   # Get standard Java environment variables
  -if [ -r "$CATALINA_HOME"/bin/setclasspath.sh ]; then
  +if $os400; then
  +  # -r will Only work on the os400 if the files are:
  +  # 1. owned by the user
  +  # 2. owned by the PRIMARY group of the user
  +  # this will not work if the user belongs in secondary groups
     BASEDIR="$CATALINA_HOME"
  -  . "$CATALINA_HOME"/bin/setclasspath.sh
  -else
  -  echo "Cannot find $CATALINA_HOME/bin/setclasspath.sh"
  -  echo "This file is needed to run this program"
  -  exit 1
  +  . "$CATALINA_HOME"/bin/setclasspath.sh 
  +else 
  +  if [ -r "$CATALINA_HOME"/bin/setclasspath.sh ]; then
  +    BASEDIR="$CATALINA_HOME"
  +    . "$CATALINA_HOME"/bin/setclasspath.sh
  +  else
  +    echo "Cannot find $CATALINA_HOME/bin/setclasspath.sh"
  +    echo "This file is needed to run this program"
  +    exit 1
  +  fi
   fi
   
   # Add on extra jar files to CLASSPATH
  
  
  
  1.7.2.3   +12 -4     jakarta-tomcat-catalina/catalina/src/bin/setclasspath.sh
  
  Index: setclasspath.sh
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/bin/setclasspath.sh,v
  retrieving revision 1.7.2.2
  retrieving revision 1.7.2.3
  diff -u -r1.7.2.2 -r1.7.2.3
  --- setclasspath.sh   14 Oct 2004 17:33:30 -0000      1.7.2.2
  +++ setclasspath.sh   17 Nov 2004 20:06:34 -0000      1.7.2.3
  @@ -31,9 +31,17 @@
     exit 1
   fi
   if [ ! -x "$BASEDIR"/bin/setclasspath.sh ]; then
  -  echo "The BASEDIR environment variable is not defined correctly"
  -  echo "This environment variable is needed to run this program"
  -  exit 1
  +  if $os400; then
  +    # -x will Only work on the os400 if the files are:
  +    # 1. owned by the user
  +    # 2. owned by the PRIMARY group of the user
  +    # this will not work if the user belongs in secondary groups 
  +    eval
  +  else
  +    echo "The BASEDIR environment variable is not defined correctly"
  +    echo "This environment variable is needed to run this program"
  +    exit 1
  +  fi
   fi
   
   # Set the default -Djava.endorsed.dirs argument
  
  
  
  1.3.2.1   +22 -5     jakarta-tomcat-catalina/catalina/src/bin/startup.sh
  
  Index: startup.sh
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/bin/startup.sh,v
  retrieving revision 1.3
  retrieving revision 1.3.2.1
  diff -u -r1.3 -r1.3.2.1
  --- startup.sh        4 Aug 2002 18:19:43 -0000       1.3
  +++ startup.sh        17 Nov 2004 20:06:34 -0000      1.3.2.1
  @@ -5,6 +5,15 @@
   # $Id$
   # 
-----------------------------------------------------------------------------
   
  +# Detect OS400: see Bugzilla 31132
  +os400=false
  +case "`uname`" in
  +CYGWIN*) cygwin=true;;
  +OS400*) os400=true;;
  +esac
  + 
  +
  +
   # resolve links - $0 may be a softlink
   PRG="$0"
   
  @@ -22,10 +31,18 @@
   EXECUTABLE=catalina.sh
   
   # Check that target executable exists
  -if [ ! -x "$PRGDIR"/"$EXECUTABLE" ]; then
  -  echo "Cannot find $PRGDIR/$EXECUTABLE"
  -  echo "This file is needed to run this program"
  -  exit 1
  +if $os400; then
  +  # -x will Only work on the os400 if the files are: 
  +  # 1. owned by the user
  +  # 2. owned by the PRIMARY group of the user
  +  # this will not work if the user belongs in secondary groups
  +  eval
  +else
  +  if [ ! -x "$PRGDIR"/"$EXECUTABLE" ]; then
  +    echo "Cannot find $PRGDIR/$EXECUTABLE"
  +    echo "This file is needed to run this program"
  +    exit 1
  +  fi
   fi
   
   exec "$PRGDIR"/"$EXECUTABLE" start "$@"
  
  
  
  No                   revision
  No                   revision
  1.70.2.72 +4 -0      jakarta-tomcat-catalina/webapps/docs/changelog.xml
  
  Index: changelog.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/webapps/docs/changelog.xml,v
  retrieving revision 1.70.2.71
  retrieving revision 1.70.2.72
  diff -u -r1.70.2.71 -r1.70.2.72
  --- changelog.xml     17 Nov 2004 19:54:53 -0000      1.70.2.71
  +++ changelog.xml     17 Nov 2004 20:06:35 -0000      1.70.2.72
  @@ -23,6 +23,10 @@
         <update>
           <bug>32235</bug>: align conf/web.xml MIME types with Apache HTTPD. 
(yoavs)
         </update>
  +      <fix> 
  +        <bug>31132</bug>: Modified startup scripts for better OS/400 -x/-r 
handling. (yoavs)
  +      </fix>
  +
       </changelog>
     </subsection>
   
  
  
  

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

Reply via email to