svn:// URLs are on port 3960 discover-target would need to test netstat output e.g. netstat -a | grep 3960 >output.file a fail message would be no output a found message would be the IP:3960 of the server
OR in the case of ssh+svn netstat -a | grep 22 >output.file a fail message would be no output a found message would be the IP:3960 of the server build.xml chronology of execution would be: delete output.file task the first discover-target (which will be the 1st target) to execute netstat and create an output.file task the second target to have a dependency on the first discover-target and then wait for 5 seconds test for the existence of the output.file from the 1st discover-target.. if output-file is there you're good to go hth, Martin Gainty ______________________________________________ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Fri, 4 Feb 2011 07:08:50 -0800 > From: ganesh.devaraj...@baml.com > To: user@ant.apache.org > Subject: To check server is down > > > Is there a ant task to check whether the server hosting the source control is > down? > -- > View this message in context: > http://ant.1045680.n5.nabble.com/To-check-server-is-down-tp3371133p3371133.html > Sent from the Ant - Users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@ant.apache.org > For additional commands, e-mail: user-h...@ant.apache.org >