Author: thomas.diesler(a)jboss.com
Date: 2007-01-23 17:30:37 -0500 (Tue, 23 Jan 2007)
New Revision: 2049
Modified:
branches/jbossws-1.2.0/build/hudson/jboss/jboss.sh
Log:
Use dirname
Modified: branches/jbossws-1.2.0/build/hudson/jboss/jboss.sh
===================================================================
--- branches/jbossws-1.2.0/build/hudson/jboss/jboss.sh 2007-01-23 22:19:40 UTC (rev 2048)
+++ branches/jbossws-1.2.0/build/hudson/jboss/jboss.sh 2007-01-23 22:30:37 UTC (rev 2049)
@@ -1,11 +1,14 @@
#!/bin/sh
+DIRNAME=`dirname $0`
+JBOSS_HOME=`cd $DIRNAME/..; pwd`
+
case "$1" in
start)
- ./run.sh > /dev/null &
+ $JBOSS_HOME/bin/run.sh > /dev/null &
;;
stop)
- ./shutdown.sh -S > /dev/null &
+ $JBOSS_HOME/bin/shutdown.sh -S > /dev/null &
;;
restart)
$0 stop
@@ -13,5 +16,4 @@
;;
*)
echo "usage: $0 (start|stop|restart|help)"
-esac
-
+esac
\ No newline at end of file
Show replies by date