console.sh

来自「一个专门为struts开发的可视化xml配置文件的生成工具」· Shell 代码 · 共 57 行

SH
57
字号
#!/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 + =
减小字号Ctrl + -
显示快捷键?