📄 console.sh
字号:
#!/bin/sh# determine if OS is Cygwincygwin=false;case "`uname`" in CYGWIN*) cygwin=true ;;esac# looks for a jvm at $JAVA_PATH, $JAVA_HOME or $JDK_HOME if [ ! -z "$JAVA_PATH" ] ; then java_home=$JAVA_PATHfiif [ ! -z "$JAVA_HOME" ] ; then java_home=$JAVA_HOMEfiif [ ! -z "$JDK_HOME" ] ; then java_home=$JDK_HOMEfi# no environment variable with java path, no gameif [ -z "$java_home" ] ; then echo ERROR Set JAVA_PATH, JAVA_HOME or JDK_HOME before running this script. exit 1fi# Convert java hom path for Cygwin if necessaryif $cygwin; then java_home=`cygpath -u "$java_home"`fi# no java application at the java path, still no game if [ ! -x "${java_home}/bin/java" ] ; then echo ERROR - Set JAVA_PATH, JAVA_HOME or JDK_HOME to the path of a valid jdk. exit 1fi# Set the installation directory for Struts Consoleconsole_home=..console_lib=${console_home}/com.jamesholmes.console.struts/lib# Finally set the right classpathconsole_classpath=${java_home}/jre/lib/rt.jar:${console_lib}/struts-console.jar:${console_lib}/xerces.jar# Convert path for Cygwin if necessaryif $cygwin; then console_classpath=`cygpath -w -p "$console_classpath"`fi# and run it${java_home}/bin/java -classpath "$console_classpath" com.jamesholmes.console.struts.StrutsConsole $1
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -