deployer.sh 文档
时间:2006-01-05 来源:uninone
deployer.sh
# Setup the classpath
programjar="$JBOSS_HOME/bin/deployer.jar"
if [ ! -f $programjar ]; then
die "Missing required file: $programjar"
fi
JBOSS_BOOT_CLASSPATH="$programjar" if [ "x$JBOSS_CLASSPATH" = "x" ]; then
JBOSS_CLASSPATH="$JBOSS_BOOT_CLASSPATH:$JAVAC_JAR"
else
JBOSS_CLASSPATH="$JBOSS_CLASSPATH:$JBOSS_BOOT_CLASSPATH:$JAVAC_JAR"
fi # Check for SUN(tm) JVM w/ HotSpot support
if [ "x$HAS_HOTSPOT" = "x" ]; then
HAS_HOTSPOT=`$JAVA -version 2>&1 | $GREP HotSpot`
fi # If JAVA_OPTS is not set and the JVM is HOTSPOT enabled, then the server mode
if [ "x$JAVA_OPTS" = "x" -a "x$HAS_HOTSPOT" != "x" ]; then
# MacOS does not support -server flag
if [ "$darwin" != "true" ]; then
JAVA_OPTS="-server"
fi
fi # Setup JBoss sepecific properties
JAVA_OPTS="$JAVA_OPTS -Dprogram.name=$PROGNAME" # For Cygwin, switch paths to Windows format before running java
if $cygwin; then
JBOSS_HOME=`cygpath --path --windows "$JBOSS_HOME"`
JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
JBOSS_CLASSPATH=`cygpath --path --windows "$JBOSS_CLASSPATH"`
fi # Execute the JVM
exec $JAVA $JAVA_OPTS
-classpath "$JBOSS_CLASSPATH"
org.jboss.jmx.service.RemoteDeployer "$@"
"deployer.sh" 105L, 2649C
# Setup the classpath
programjar="$JBOSS_HOME/bin/deployer.jar"
if [ ! -f $programjar ]; then
die "Missing required file: $programjar"
fi
JBOSS_BOOT_CLASSPATH="$programjar" if [ "x$JBOSS_CLASSPATH" = "x" ]; then
JBOSS_CLASSPATH="$JBOSS_BOOT_CLASSPATH:$JAVAC_JAR"
else
JBOSS_CLASSPATH="$JBOSS_CLASSPATH:$JBOSS_BOOT_CLASSPATH:$JAVAC_JAR"
fi # Check for SUN(tm) JVM w/ HotSpot support
if [ "x$HAS_HOTSPOT" = "x" ]; then
HAS_HOTSPOT=`$JAVA -version 2>&1 | $GREP HotSpot`
fi # If JAVA_OPTS is not set and the JVM is HOTSPOT enabled, then the server mode
if [ "x$JAVA_OPTS" = "x" -a "x$HAS_HOTSPOT" != "x" ]; then
# MacOS does not support -server flag
if [ "$darwin" != "true" ]; then
JAVA_OPTS="-server"
fi
fi # Setup JBoss sepecific properties
JAVA_OPTS="$JAVA_OPTS -Dprogram.name=$PROGNAME" # For Cygwin, switch paths to Windows format before running java
if $cygwin; then
JBOSS_HOME=`cygpath --path --windows "$JBOSS_HOME"`
JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
JBOSS_CLASSPATH=`cygpath --path --windows "$JBOSS_CLASSPATH"`
fi # Execute the JVM
exec $JAVA $JAVA_OPTS
-classpath "$JBOSS_CLASSPATH"
org.jboss.jmx.service.RemoteDeployer "$@"
"deployer.sh" 105L, 2649C
相关阅读 更多 +
排行榜 更多 +