⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tool-wrapper.sh

📁 这是一个网上考试系统,主要是用java和jsp写的.
💻 SH
字号:
#!/bin/sh# -----------------------------------------------------------------------------# Wrapper script for command line tools## Environment Variable Prequisites##   CATALINA_HOME May point at your Catalina "build" directory.##   TOOL_OPTS     (Optional) Java runtime options used when the "start",#                 "stop", or "run" command is executed.##   JAVA_HOME     Must point at your Java Development Kit installation.##   JAVA_OPTS     (Optional) Java runtime options used when the "start",#                 "stop", or "run" command is executed.## $Id: tool-wrapper.sh 467182 2006-10-23 23:47:06Z markt $# -----------------------------------------------------------------------------# OS specific support.  $var _must_ be set to either true or false.cygwin=falsecase "`uname`" inCYGWIN*) cygwin=true;;esac# resolve links - $0 may be a softlinkPRG="$0"while [ -h "$PRG" ]; do  ls=`ls -ld "$PRG"`  link=`expr "$ls" : '.*-> \(.*\)$'`  if expr "$link" : '/.*' > /dev/null; then    PRG="$link"  else    PRG=`dirname "$PRG"`/"$link"  fidone# Get standard environment variablesPRGDIR=`dirname "$PRG"`CATALINA_HOME=`cd "$PRGDIR/.." ; pwd`if [ -r "$CATALINA_HOME"/bin/setenv.sh ]; then  . "$CATALINA_HOME"/bin/setenv.shfi# For Cygwin, ensure paths are in UNIX format before anything is touchedif $cygwin; then  [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`  [ -n "$CATALINA_HOME" ] && CATALINA_HOME=`cygpath --unix "$CATALINA_HOME"`  [ -n "$CLASSPATH" ] && CLASSPATH=`cygpath --path --unix "$CLASSPATH"`fi# Get standard Java environment variablesif [ -r "$CATALINA_HOME"/bin/setclasspath.sh ]; then  BASEDIR="$CATALINA_HOME"  . "$CATALINA_HOME"/bin/setclasspath.shelse  echo "Cannot find $CATALINA_HOME/bin/setclasspath.sh"  echo "This file is needed to run this program"  exit 1fi# Add on extra jar files to CLASSPATHCLASSPATH="$CLASSPATH":"$CATALINA_HOME"/bin/bootstrap.jar:"$BASEDIR"/lib/servlet-api.jar# For Cygwin, switch paths to Windows format before running javaif $cygwin; then  JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`  CATALINA_HOME=`cygpath --path --windows "$CATALINA_HOME"`  CLASSPATH=`cygpath --path --windows "$CLASSPATH"`fi# ----- Execute The Requested Command -----------------------------------------exec "$_RUNJAVA" $JAVA_OPTS $TOOL_OPTS \  -Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS" -classpath "$CLASSPATH" \  -Dcatalina.home="$CATALINA_HOME" \  org.apache.catalina.startup.Tool "$@"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -