[jbossws-commits] JBossWS SVN: r3367 - trunk/build/hudson/jboss/bin.
jbossws-commits at lists.jboss.org
jbossws-commits at lists.jboss.org
Fri Jun 1 10:53:27 EDT 2007
Author: heiko.braun at jboss.com
Date: 2007-06-01 10:53:27 -0400 (Fri, 01 Jun 2007)
New Revision: 3367
Modified:
trunk/build/hudson/jboss/bin/http-spider.sh
Log:
Create spider.txt relative to job dir
Modified: trunk/build/hudson/jboss/bin/http-spider.sh
===================================================================
--- trunk/build/hudson/jboss/bin/http-spider.sh 2007-06-01 14:43:54 UTC (rev 3366)
+++ trunk/build/hudson/jboss/bin/http-spider.sh 2007-06-01 14:53:27 UTC (rev 3367)
@@ -10,26 +10,30 @@
#
# @author Heiko.Braun at jboss.com
#
-# $Revision: $
+# $Id: $
#
#############################################################
-TIMEOUT=2 # wget timeout in sec
-SLEEP_TIME=10 # the actual sleep time in between test
-NUM_RETRIES=12 # equals 120 seconds before exit
+TIMEOUT=10 # wget timeout in sec
+SLEEP_TIME=5 # the actual sleep time in between test
+NUM_RETRIES=2 # equals 120 seconds before exit
if [ "x$1" = "x" ]; then
- echo "Usage: http.sh <hostname:port>"
+ echo "Usage: http.sh <hostname:port> <output_dir>"
fi
+if [ "x$2" = "x" ]; then
+ echo "Usage: http.sh <hostname:port> <output_dir>"
+fi
+
# cleanup
-rm ./spider.success 2&>1 /dev/null
-rm ./spider.failed 2&>1 /dev/null
+rm $2/spider.success 2&>1 /dev/null
+rm $2/spider.failed 2&>1 /dev/null
COUNTER=0
while [ $COUNTER -lt $NUM_RETRIES ]; do
if wget --spider --timeout=$TIMEOUT --tries=1 $1 &> /dev/null; then
- touch ./spider.success
+ touch $2/spider.success
echo "Try $COUNTER: '$1' is available" > ./spider.success
exit 0
else
@@ -39,7 +43,7 @@
let COUNTER=COUNTER+1
done
-touch ./spider.failed
+touch $2/spider.failed
echo "Unable to connect to $1, exiting..." > spider.failed
exit 0
More information about the jbossws-commits
mailing list