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

📄 run-client.sh

📁 Jboss s J2EE Sample
💻 SH
字号:
#! /bin/sh# OS specific support.  $var _must_ be set to either true or false.cygwin=false;case "`uname`" in  CYGWIN*) cygwin=true ;;esac# Set JAVA_HOMEJAVA_HOME=@java.home@# For Cygwin, ensure paths are in UNIX format before anything is touchedif $cygwin ; then  [ -n "$JAVA_HOME" ] &&    JAVA_HOME=`cygpath --unix "$JAVA_HOME"`  [ -n "$CLASSPATH" ] &&    CLASSPATH=`cygpath --path --unix "$CLASSPATH"`fiif [ -z "$JAVACMD" ] ; then   if [ -n "$JAVA_HOME"  ] ; then    if [ -x "$JAVA_HOME/jre/sh/java" ] ; then       # IBM's JDK on AIX uses strange locations for the executables      JAVACMD=$JAVA_HOME/jre/sh/java    else      JAVACMD=$JAVA_HOME/bin/java    fi  else    JAVACMD=java  fifi if [ ! -x "$JAVACMD" ] ; then  echo "Error: JAVA_HOME is not defined correctly."  echo "  We cannot execute $JAVACMD"  exitfiif [ -n "$CLASSPATH" ] ; then  LOCALCLASSPATH=.:$CLASSPATHfi# add in the dependency .jar filesDIRLIBS=@jboss.home@/client/*.jarif $cygwin; then  DIRLIBS=`cygpath --path --unix "$DIRLIBS"`fifor i in ${DIRLIBS}do    # if the directory is empty, then it will return the input string    # this is stupid, so case for it    if [ "$i" != "${DIRLIBS}" ] ; then      if [ -z "$LOCALCLASSPATH" ] ; then        LOCALCLASSPATH=$i      else        LOCALCLASSPATH="$i":$LOCALCLASSPATH      fi    fidoneDIRLIBS=../../*.jarif $cygwin; then  DIRLIBS=`cygpath --path --unix "$DIRLIBS"`fifor i in ${DIRLIBS}do    # if the directory is empty, then it will return the input string    # this is stupid, so case for it    if [ "$i" != "${DIRLIBS}" ] ; then      if [ -z "$LOCALCLASSPATH" ] ; then        LOCALCLASSPATH=$i      else        LOCALCLASSPATH="$i":$LOCALCLASSPATH      fi    fidoneDIRLIBS=../client/*.jarif $cygwin; then  DIRLIBS=`cygpath --path --unix "$DIRLIBS"`fifor i in ${DIRLIBS}do    # if the directory is empty, then it will return the input string    # this is stupid, so case for it    if [ "$i" != "${DIRLIBS}" ] ; then      if [ -z "$LOCALCLASSPATH" ] ; then        LOCALCLASSPATH=$i      else        LOCALCLASSPATH="$i":$LOCALCLASSPATH      fi    fidoneif [ -n "$JAVA_HOME" ] ; then  if [ -f "$JAVA_HOME/lib/tools.jar" ] ; then    LOCALCLASSPATH=$LOCALCLASSPATH:$JAVA_HOME/lib/tools.jar  fi  if [ -f "$JAVA_HOME/lib/classes.zip" ] ; then    LOCALCLASSPATH=$LOCALCLASSPATH:$JAVA_HOME/lib/classes.zip  fielse  echo "Warning: JAVA_HOME environment variable is not set."  echo "  If build fails because sun.* classes could not be found"  echo "  you will need to set the JAVA_HOME environment variable"  echo "  to the installation directory of java."fi# For Cygwin, switch paths to Windows format before running javaif $cygwin; then  JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`  LOCALCLASSPATH=`cygpath --path --windows "$LOCALCLASSPATH"`fiecho $JAVACMD -classpath "$LOCALCLASSPATH" transaction.client.TestClient "$@"$JAVACMD -classpath "$LOCALCLASSPATH" transaction.client.TestClient "$@"

⌨️ 快捷键说明

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