Author: thomas.diesler(a)jboss.com
Date: 2007-01-23 17:19:40 -0500 (Tue, 23 Jan 2007)
New Revision: 2048
Modified:
branches/jbossws-1.2.0/build/hudson/jboss/jboss.sh
Log:
simplify script
Modified: branches/jbossws-1.2.0/build/hudson/jboss/jboss.sh
===================================================================
--- branches/jbossws-1.2.0/build/hudson/jboss/jboss.sh 2007-01-23 21:51:43 UTC (rev 2047)
+++ branches/jbossws-1.2.0/build/hudson/jboss/jboss.sh 2007-01-23 22:19:40 UTC (rev 2048)
@@ -1,22 +1,10 @@
#!/bin/sh
-if [ -z "$1" ]
-then
- echo "Please specify a jboss instance to be started"; exit 1;
-fi
-
-#define where jboss is - this is the directory containing directories log, bin, conf etc
-JBOSS_INSTANCE=$1
-
-echo "Using jboss instance $JBOSS_INSTANCE"
-
-case "$2" in
+case "$1" in
start)
- cd $JBOSS_INSTANCE/bin
./run.sh > /dev/null &
;;
stop)
- cd $JBOSS_INSTANCE/bin
./shutdown.sh -S > /dev/null &
;;
restart)
Show replies by date