ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Lybarger" <>
Subject using waitfor to see when a server goes down
Date Wed, 10 Nov 2004 15:04:22 GMT
is it possible to use waitfor or some other task to see if a server/port has been closed?

we're using this to wait for the server to be up before we deploy components to the server,
but would like to also identify if something went wrong during shutdown.

    <waitfor maxwait="5" maxwaitunit="minute" checkevery="500" timeoutproperty="admin.server.start.failed">
	    <socket server="localhost" port="${Server.Admin.ListenPort}" />
    <condition property="admin.server.isrunning">
		<isset property="admin.server.start.failed"/>


View raw message