[JBoss-dev] CVS update: jboss/src/bin run.sh

2002-02-15 Thread Jason Dillon

  User: user57  
  Date: 02/02/15 20:52:16

  Modified:src/bin  run.sh
  Log:
   o allow jboss directory to have a space in it
  
  Revision  ChangesPath
  1.35  +9 -8  jboss/src/bin/run.sh
  
  Index: run.sh
  ===
  RCS file: /cvsroot/jboss/jboss/src/bin/run.sh,v
  retrieving revision 1.34
  retrieving revision 1.35
  diff -u -r1.34 -r1.35
  --- run.sh7 Feb 2002 00:29:31 -   1.34
  +++ run.sh16 Feb 2002 04:52:15 -  1.35
  @@ -5,7 +5,7 @@
   ##  ##
   ### == ###
   
  -### $Id: run.sh,v 1.34 2002/02/07 00:29:31 user57 Exp $ ###
  +### $Id: run.sh,v 1.35 2002/02/16 04:52:15 user57 Exp $ ###
   
   DIRNAME=`dirname $0`
   PROGNAME=`basename $0`
  @@ -89,24 +89,25 @@
   
   # Display our environment
   echo 
""
  -echo " JBoss Bootstrap Environment"
   echo ""
  -echo " JBOSS_HOME: $JBOSS_HOME"
  +echo "  JBoss Bootstrap Environment"
   echo ""
  -echo " JAVA: $JAVA"
  +echo "  JBOSS_HOME: $JBOSS_HOME"
   echo ""
  -echo " JAVA_OPTS: $JAVA_OPTS"
  +echo "  JAVA: $JAVA"
   echo ""
  -echo " CLASSPATH: $JBOSS_CLASSPATH"
  +echo "  JAVA_OPTS: $JAVA_OPTS"
  +echo ""
  +echo "  CLASSPATH: $JBOSS_CLASSPATH"
   echo ""
   echo 
""
   echo ""
   
   # Make sure we are in the correctly directory
  -cd $startdir
  +cd "$startdir"
   
   # Execute the JVM
   exec $JAVA \
   $JAVA_OPTS \
  --classpath $JBOSS_CLASSPATH \
  +-classpath "$JBOSS_CLASSPATH" \
   org.jboss.Main "$@"
  
  
  

___
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] CVS update: jboss/src/bin run.sh

2002-01-31 Thread Andreas Schaefer

  User: schaefera
  Date: 02/01/31 19:52:59

  Modified:src/bin  Tag: Branch_2_4 run.sh
  Log:
  Added Cygwin support
  
  Revision  ChangesPath
  No   revision
  
  
  No   revision
  
  
  1.19.4.1  +11 -0 jboss/src/bin/run.sh
  
  Index: run.sh
  ===
  RCS file: /cvsroot/jboss/jboss/src/bin/run.sh,v
  retrieving revision 1.19
  retrieving revision 1.19.4.1
  diff -u -r1.19 -r1.19.4.1
  --- run.sh2001/05/30 16:37:09 1.19
  +++ run.sh2002/02/01 03:52:59 1.19.4.1
  @@ -1,5 +1,11 @@
   #!/bin/sh
   
  +# OS specific support.  $var _must_ be set to either true or false.
  +cygwin=false;
  +case "`uname`" in
  +  CYGWIN*) cygwin=true ;;
  +esac
  +
   # Minimal jar file to get JBoss started.
   
   JBOSS_CLASSPATH=$JBOSS_CLASSPATH:run.jar
  @@ -22,6 +28,11 @@
   JBOSS_CLASSPATH=$JBOSS_CLASSPATH:../lib/crimson.jar
   
JAXP=-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.crimson.jaxp.DocumentBuilderFactoryImpl
   JAXP="$JAXP 
-Djavax.xml.parsers.SAXParserFactory=org.apache.crimson.jaxp.SAXParserFactoryImpl"
  +
  +# For Cygwin, switch paths to Windows format before running java
  +if $cygwin; then
  +  JBOSS_CLASSPATH=`cygpath --path --windows "$JBOSS_CLASSPATH"`
  +fi
   
   echo JBOSS_CLASSPATH=$JBOSS_CLASSPATH
   java $HOTSPOT $JAXP -classpath $JBOSS_CLASSPATH org.jboss.Main $@
  
  
  

___
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] CVS update: jboss/src/bin run.sh shutdown.sh

2002-01-03 Thread Jason Dillon

  User: user57  
  Date: 02/01/03 16:09:54

  Modified:src/bin  run.sh shutdown.sh
  Log:
   o added support to use these on win32 using cygwin
  
  Revision  ChangesPath
  1.33  +39 -6 jboss/src/bin/run.sh
  
  Index: run.sh
  ===
  RCS file: /cvsroot/jboss/jboss/src/bin/run.sh,v
  retrieving revision 1.32
  retrieving revision 1.33
  diff -u -r1.32 -r1.33
  --- run.sh2001/12/08 18:23:39 1.32
  +++ run.sh2002/01/04 00:09:54 1.33
  @@ -5,7 +5,7 @@
   ##  ##
   ### == ###
   
  -### $Id: run.sh,v 1.32 2001/12/08 18:23:39 starksm Exp $ ###
  +### $Id: run.sh,v 1.33 2002/01/04 00:09:54 user57 Exp $ ###
   
   DIRNAME=`dirname $0`
   PROGNAME=`basename $0`
  @@ -19,30 +19,51 @@
   exit 1
   }
   
  +# OS specific support (must be 'true' or 'false').
  +cygwin=false;
  +case "`uname`" in
  +CYGWIN*)
  +cygwin=true
  +;;
  +esac
  +
  +# For Cygwin, ensure paths are in UNIX format before anything is touched
  +if $cygwin ; then
  +[ -n "$JBOSS_HOME" ] &&
  +JBOSS_HOME=`cygpath --unix "$JBOSS_HOME"`
  +[ -n "$JAVA_HOME" ] &&
  +JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
  +[ -n "$JAVAC_JAR" ] &&
  +JAVAC_JAR=`cygpath --unix "$JAVAC_JAR"`
  +fi
  +
   # Setup JBOSS_HOME
   if [ "x$JBOSS_HOME" = "x" ]; then
  +# get the full path (without any relative bits)
   JBOSS_HOME=`cd $DIRNAME/..; pwd`
   fi
   export JBOSS_HOME
   
   # Setup the JVM
   if [ "x$JAVA_HOME" != "x" ]; then
  -JAVA=$JAVA_HOME/bin/java
  +JAVA="$JAVA_HOME/bin/java"
   else
   JAVA="java"
   fi
   
   # Setup the classpath
   JBOSS_BOOT_CLASSPATH="$JBOSS_HOME/bin/run.jar"
  +
   # Include the JDK javac compiler for JSP pages. The default is for a Sun JDK
   # compatible distribution which JAVA_HOME points to
   if [ "x$JAVAC_JAR" = "x" ]; then
  -JAVAC_JAR=$JAVA_HOME/lib/tools.jar
  +JAVAC_JAR="$JAVA_HOME/lib/tools.jar"
   fi
  +
   if [ "x$JBOSS_CLASSPATH" = "x" ]; then
  -JBOSS_CLASSPATH="$JBOSS_BOOT_CLASSPATH:$JAVAC_JAR:"
  +JBOSS_CLASSPATH="$JBOSS_BOOT_CLASSPATH:$JAVAC_JAR"
   else
  -JBOSS_CLASSPATH="$JBOSS_CLASSPATH:$JBOSS_BOOT_CLASSPATH:$JAVAC_JAR:"
  +JBOSS_CLASSPATH="$JBOSS_CLASSPATH:$JBOSS_BOOT_CLASSPATH:$JAVAC_JAR"
   fi
   
   # Check for SUN(tm) JVM w/ HotSpot support
  @@ -84,10 +105,22 @@
   JAVA_OPTS="$JAVA_OPTS -Djavax.xml.parsers.DocumentBuilderFactory=$JAXP_DOM_FACTORY"
   JAVA_OPTS="$JAVA_OPTS -Djavax.xml.parsers.SAXParserFactory=$JAXP_SAX_FACTORY"
   
  +# Where we need to be to start the server
  +startdir="$JBOSS_HOME/bin"
  +
  +# 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
  +
   # Display our environment
   echo 
""
   echo " JBoss Bootstrap Environment"
   echo ""
  +echo " JBOSS_HOME: $JBOSS_HOME"
  +echo ""
   echo " JAVA: $JAVA"
   echo ""
   echo " JAVA_OPTS: $JAVA_OPTS"
  @@ -98,7 +131,7 @@
   echo ""
   
   # Make sure we are in the correctly directory
  -cd $JBOSS_HOME/bin
  +cd $startdir
   
   # Execute the JVM
   exec $JAVA \
  
  
  
  1.2   +25 -1 jboss/src/bin/shutdown.sh
  
  Index: shutdown.sh
  ===
  RCS file: /cvsroot/jboss/jboss/src/bin/shutdown.sh,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- shutdown.sh   2001/12/09 05:21:56 1.1
  +++ shutdown.sh   2002/01/04 00:09:54 1.2
  @@ -5,7 +5,7 @@
   ##  ##
   ### == ###
   
  -### $Id: shutdown.sh,v 1.1 2001/12/09 05:21:56 user57 Exp $ ###
  +### $Id: shutdown.sh,v 1.2 2002/01/04 00:09:54 user57 Exp $ ###
   
   DIRNAME=`dirname $0`
   PROGNAME=`basename $0`
  @@ -19,6 +19,22 @@
   exit 1
   }
   
  +# OS specific support (must be 'true' or 'false').
  +cygwin=false;
  +case "`uname`" in
  +CYGWIN*)
  +cygwin=true
  +;;
  +esac
  +
  +# For Cygwin, ensure paths are in UNIX format before anything is touched
  +if $cygwin ; then
  +[ -n "$JBOSS_HOME" ] &&
  +JBOSS_HOME=`cygpath --unix "$JBOSS_HOME"`
  +[ -n "$JAVA_HOME" ] &&
  +JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
  +fi
  +
   # Setup JBOSS_HOME
   if [ "x$JBOSS_HOME" = "x" ]; then
   JBOSS_HOME=`cd $DIRNAME/..; pwd`
  @@ -34,10 +50,18 @@
   
   # Setup the classpath
   JBOSS_BOOT_CLASSPATH="$JBOSS_HOME/bin/shutdown.jar"
  +
   if [ "x$JBOSS_CLASSPATH" = "x" ];

[JBoss-dev] CVS update: jboss/src/bin run.sh

2001-12-08 Thread Scott M Stark

  User: starksm 
  Date: 01/12/08 10:23:39

  Modified:src/bin  run.sh
  Log:
  Allow override of JAVAC_JAR from environment
  
  Revision  ChangesPath
  1.32  +4 -2  jboss/src/bin/run.sh
  
  Index: run.sh
  ===
  RCS file: /cvsroot/jboss/jboss/src/bin/run.sh,v
  retrieving revision 1.31
  retrieving revision 1.32
  diff -u -r1.31 -r1.32
  --- run.sh2001/12/08 18:10:11 1.31
  +++ run.sh2001/12/08 18:23:39 1.32
  @@ -5,7 +5,7 @@
   ##  ##
   ### == ###
   
  -### $Id: run.sh,v 1.31 2001/12/08 18:10:11 starksm Exp $ ###
  +### $Id: run.sh,v 1.32 2001/12/08 18:23:39 starksm Exp $ ###
   
   DIRNAME=`dirname $0`
   PROGNAME=`basename $0`
  @@ -36,7 +36,9 @@
   JBOSS_BOOT_CLASSPATH="$JBOSS_HOME/bin/run.jar"
   # Include the JDK javac compiler for JSP pages. The default is for a Sun JDK
   # compatible distribution which JAVA_HOME points to
  -JAVAC_JAR=$JAVA_HOME/lib/tools.jar
  +if [ "x$JAVAC_JAR" = "x" ]; then
  +JAVAC_JAR=$JAVA_HOME/lib/tools.jar
  +fi
   if [ "x$JBOSS_CLASSPATH" = "x" ]; then
   JBOSS_CLASSPATH="$JBOSS_BOOT_CLASSPATH:$JAVAC_JAR:"
   else
  
  
  

___
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] CVS update: jboss/src/bin run.sh

2001-09-10 Thread Chris Kimpton

  User: kimptoc 
  Date: 01/09/10 05:40:33

  Modified:src/bin  run.sh
  Log:
  fixed bug with regard to setting the -server flag, it was never being set before
  
  Revision  ChangesPath
  1.29  +2 -2  jboss/src/bin/run.sh
  
  Index: run.sh
  ===
  RCS file: /cvsroot/jboss/jboss/src/bin/run.sh,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- run.sh2001/09/07 22:30:47 1.28
  +++ run.sh2001/09/10 12:40:33 1.29
  @@ -5,7 +5,7 @@
   ##  ##
   ### == ###
   
  -### $Id: run.sh,v 1.28 2001/09/07 22:30:47 starksm Exp $ ###
  +### $Id: run.sh,v 1.29 2001/09/10 12:40:33 kimptoc Exp $ ###
   
   DIRNAME=`dirname $0`
   PROGNAME=`basename $0`
  @@ -44,7 +44,7 @@
   HAS_HOTSPOT=`$JAVA -version 2>&1 | $GREP HotSpot`
   
   # If JAVA_OPTS is not set and the JVM is HOTSPOT enabled, then the server mode
  -if [ "x$JAVA_OPTS" = "x" -a "x$HOTSPOT" != "x" ]; then
  +if [ "x$JAVA_OPTS" = "x" -a "x$HAS_HOTSPOT" != "x" ]; then
   JAVA_OPTS="-server"
   fi
   
  
  
  

___
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] CVS update: jboss/src/bin run.sh

2001-09-07 Thread Scott M Stark

  User: starksm 
  Date: 01/09/07 15:30:47

  Modified:src/bin  run.sh
  Log:
  Should be execing $JAVA not java
  
  Revision  ChangesPath
  1.28  +2 -2  jboss/src/bin/run.sh
  
  Index: run.sh
  ===
  RCS file: /cvsroot/jboss/jboss/src/bin/run.sh,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- run.sh2001/08/30 02:50:57 1.27
  +++ run.sh2001/09/07 22:30:47 1.28
  @@ -5,7 +5,7 @@
   ##  ##
   ### == ###
   
  -### $Id: run.sh,v 1.27 2001/08/30 02:50:57 mnf999 Exp $ ###
  +### $Id: run.sh,v 1.28 2001/09/07 22:30:47 starksm Exp $ ###
   
   DIRNAME=`dirname $0`
   PROGNAME=`basename $0`
  @@ -93,7 +93,7 @@
   cd $JBOSS_HOME/bin
   
   # Execute the JVM
  -exec java \
  +exec $JAVA \
   $JAVA_OPTS \
   -classpath $JBOSS_CLASSPATH \
   org.jboss.Main "$@"
  
  
  

___
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] CVS update: jboss/src/bin run.sh

2001-08-29 Thread marc fleury

  User: mnf999  
  Date: 01/08/29 19:50:57

  Modified:src/bin  run.sh
  Log:
  can't remember
  
  Revision  ChangesPath
  1.27  +3 -3  jboss/src/bin/run.sh
  
  Index: run.sh
  ===
  RCS file: /cvsroot/jboss/jboss/src/bin/run.sh,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- run.sh2001/08/28 04:49:10 1.26
  +++ run.sh2001/08/30 02:50:57 1.27
  @@ -5,7 +5,7 @@
   ##  ##
   ### == ###
   
  -### $Id: run.sh,v 1.26 2001/08/28 04:49:10 user57 Exp $ ###
  +### $Id: run.sh,v 1.27 2001/08/30 02:50:57 mnf999 Exp $ ###
   
   DIRNAME=`dirname $0`
   PROGNAME=`basename $0`
  @@ -35,9 +35,9 @@
   # Setup the classpath
   JBOSS_BOOT_CLASSPATH="$JBOSS_HOME/bin/run.jar"
   if [ "x$JBOSS_CLASSPATH" = "x" ]; then
  -JBOSS_CLASSPATH="$JBOSS_BOOT_CLASSPATH"
  +JBOSS_CLASSPATH="$JBOSS_BOOT_CLASSPATH:"
   else
  -JBOSS_CLASSPATH="${JBOSS_CLASSPATH}:$JBOSS_BOOT_CLASSPATH"
  +JBOSS_CLASSPATH="${JBOSS_CLASSPATH}:$JBOSS_BOOT_CLASSPATH:"
   fi
   
   # Check for SUN(tm) JVM w/ HotSpot support
  
  
  

___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] CVS update: jboss/src/bin run.sh

2001-08-27 Thread Jason Dillon

  User: user57  
  Date: 01/08/27 21:49:10

  Modified:src/bin  run.sh
  Log:
   o added support to use xerces with JAXP=xerces (users still need to add
 classes to $JBOSS_CLASSPATH
  
  Revision  ChangesPath
  1.26  +6 -1  jboss/src/bin/run.sh
  
  Index: run.sh
  ===
  RCS file: /cvsroot/jboss/jboss/src/bin/run.sh,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- run.sh2001/08/14 02:29:24 1.25
  +++ run.sh2001/08/28 04:49:10 1.26
  @@ -5,7 +5,7 @@
   ##  ##
   ### == ###
   
  -### $Id: run.sh,v 1.25 2001/08/14 02:29:24 user57 Exp $ ###
  +### $Id: run.sh,v 1.26 2001/08/28 04:49:10 user57 Exp $ ###
   
   DIRNAME=`dirname $0`
   PROGNAME=`basename $0`
  @@ -58,6 +58,11 @@
   crimson)
JAXP_DOM_FACTORY="org.apache.crimson.jaxp.DocumentBuilderFactoryImpl"
JAXP_SAX_FACTORY="org.apache.crimson.jaxp.SAXParserFactoryImpl"
  + ;;
  +
  +xerces)
  + JAXP_DOM_FACTORY="org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"
  + JAXP_SAX_FACTORY="org.apache.xerces.jaxp.SAXParserFactoryImpl"
;;
   
   *)
  
  
  

___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] CVS update: jboss/src/bin run.sh

2001-08-13 Thread Jason Dillon

  User: user57  
  Date: 01/08/13 19:29:24

  Modified:src/bin  run.sh
  Log:
   o fixed run.sh's default JAXP case (was missing a ;)
  
  Revision  ChangesPath
  1.25  +4 -4  jboss/src/bin/run.sh
  
  Index: run.sh
  ===
  RCS file: /cvsroot/jboss/jboss/src/bin/run.sh,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- run.sh2001/08/13 18:33:00 1.24
  +++ run.sh2001/08/14 02:29:24 1.25
  @@ -5,7 +5,7 @@
   ##  ##
   ### == ###
   
  -### $Id: run.sh,v 1.24 2001/08/13 18:33:00 starksm Exp $ ###
  +### $Id: run.sh,v 1.25 2001/08/14 02:29:24 user57 Exp $ ###
   
   DIRNAME=`dirname $0`
   PROGNAME=`basename $0`
  @@ -61,9 +61,9 @@
;;
   
   *)
  - if [ "x$JAXP_DOM_FACTORY" = "x" ] && 
  -[ "x$JAXP_SAX_FACTORY" = "x" ] then
  - die "unsupported JAXP parser: $JAXP"
  + if [ "x$JAXP_DOM_FACTORY" = "x" ] &&
  +[ "x$JAXP_SAX_FACTORY" = "x" ]; then
  + die "Unsupported JAXP parser: $JAXP"
fi
;;
   esac
  
  
  

___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] CVS update: jboss/src/bin run.sh

2001-07-24 Thread Chris Kimpton

  User: kimptoc 
  Date: 01/07/24 05:17:26

  Modified:src/bin  run.sh
  Log:
  added some info statements and don't try to guess HOTSPOT setting if JAVA_OPTS is 
supplied
  
  Revision  ChangesPath
  1.22  +13 -1 jboss/src/bin/run.sh
  
  Index: run.sh
  ===
  RCS file: /cvsroot/jboss/jboss/src/bin/run.sh,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- run.sh2001/07/24 10:33:09 1.21
  +++ run.sh2001/07/24 12:17:26 1.22
  @@ -19,7 +19,9 @@
   # Check for SUN(tm) JVM w/ HotSpot support
   #
   HOTSPOT=`java -version 2>&1 | grep HotSpot`"x"
  -if [ "$HOTSPOT" != "x" ]; then
  +# only set the HOTSPOT variable if JAVA_OPTS is not set
  +# assumed user knows what they want if they set it explicitly
  +if [ "${JAVA_OPTS}x" = "x" -a "$HOTSPOT" != "x" ]; then
  HOTSPOT="-server"
   else
  HOTSPOT=""
  @@ -30,6 +32,16 @@
   JBOSS_CLASSPATH=$JBOSS_CLASSPATH:../lib/crimson.jar
   
JAXP=-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.crimson.jaxp.DocumentBuilderFactoryImpl
   JAXP="$JAXP 
-Djavax.xml.parsers.SAXParserFactory=org.apache.crimson.jaxp.SAXParserFactoryImpl"
  +
  +echo ===
  +echo ===
  +echo Environment settings
  +echo "HOTSPOT   = $HOTSPOT"
  +echo "JAVA_OPTS = $JAVA_OPTS"
  +echo "CLASSPATH = $JBOSS_CLASSPATH"
  +echo "JAXP  = $JAXP"
  +echo ===
  +echo ===
   
   echo JBOSS_CLASSPATH=$JBOSS_CLASSPATH
   java $HOTSPOT $JAVA_OPTS $JAXP -classpath $JBOSS_CLASSPATH org.jboss.Main $@
  
  
  

___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] CVS update: jboss/src/bin run.sh

2001-05-30 Thread starksm

  User: starksm 
  Date: 01/05/30 09:33:06

  Modified:src/bin  Tag: Branch_2_2 run.sh
  Log:
  Add support for detecting Sun HotSpot VM and only set -server when
  HotSpot is found
  
  Revision  ChangesPath
  No   revision
  
  
  No   revision
  
  
  1.17.2.2  +10 -1 jboss/src/bin/run.sh
  
  Index: run.sh
  ===
  RCS file: /cvsroot/jboss/jboss/src/bin/run.sh,v
  retrieving revision 1.17.2.1
  retrieving revision 1.17.2.2
  diff -u -r1.17.2.1 -r1.17.2.2
  --- run.sh2001/04/18 02:09:46 1.17.2.1
  +++ run.sh2001/05/30 16:33:06 1.17.2.2
  @@ -8,6 +8,15 @@
   # and all libraries that are used by them here
   JBOSS_CLASSPATH=$JBOSS_CLASSPATH
   
  +# Check for SUN(tm) JVM w/ HotSpot support
  +#
  +HOTSPOT=`java -version 2>&1 | grep HotSpot`"x"
  +if [ "$HOTSPOT" != "x" ]; then
  +   HOTSPOT="-server"
  +else
  +   HOTSPOT=""
  +fi
  +
   # Add the XML parser jars and set the JAXP factory names
   # Crimson parser JAXP setup(default)
   JBOSS_CLASSPATH=$JBOSS_CLASSPATH:../lib/crimson.jar
  @@ -15,5 +24,5 @@
   JAXP="$JAXP 
-Djavax.xml.parsers.SAXParserFactory=org.apache.crimson.jaxp.SAXParserFactoryImpl"
   
   echo JBOSS_CLASSPATH=$JBOSS_CLASSPATH
  -java -server $JAXP -classpath $JBOSS_CLASSPATH org.jboss.Main $@
  +java $HOTSPOT $JAXP -classpath $JBOSS_CLASSPATH org.jboss.Main $@
   
  
  
  

___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] CVS update: jboss/src/bin run.sh

2001-05-30 Thread starksm

  User: starksm 
  Date: 01/05/30 09:37:10

  Modified:src/bin  run.sh
  Log:
  Add support for detecting Sun HotSpot VM and only set -server when
  HotSpot is found
  
  Revision  ChangesPath
  1.19  +10 -1 jboss/src/bin/run.sh
  
  Index: run.sh
  ===
  RCS file: /cvsroot/jboss/jboss/src/bin/run.sh,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- run.sh2001/04/18 02:21:10 1.18
  +++ run.sh2001/05/30 16:37:09 1.19
  @@ -8,6 +8,15 @@
   # and all libraries that are used by them here
   JBOSS_CLASSPATH=$JBOSS_CLASSPATH
   
  +# Check for SUN(tm) JVM w/ HotSpot support
  +#
  +HOTSPOT=`java -version 2>&1 | grep HotSpot`"x"
  +if [ "$HOTSPOT" != "x" ]; then
  +   HOTSPOT="-server"
  +else
  +   HOTSPOT=""
  +fi
  +
   # Add the XML parser jars and set the JAXP factory names
   # Crimson parser JAXP setup(default)
   JBOSS_CLASSPATH=$JBOSS_CLASSPATH:../lib/crimson.jar
  @@ -15,5 +24,5 @@
   JAXP="$JAXP 
-Djavax.xml.parsers.SAXParserFactory=org.apache.crimson.jaxp.SAXParserFactoryImpl"
   
   echo JBOSS_CLASSPATH=$JBOSS_CLASSPATH
  -java -server $JAXP -classpath $JBOSS_CLASSPATH org.jboss.Main $@
  +java $HOTSPOT $JAXP -classpath $JBOSS_CLASSPATH org.jboss.Main $@
   
  
  
  

___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development