Can I check if a port is open using ANT tasks?
I need to execute the flexunit task, but before starting this task, I need to check if another flexunit task is running and blocking the desired port.
Thanks for any suggestions,
Rafal
Use the ant socket condition.
<target name="check-port" description="Check whether Tomcat is running"> <echo message="Checking whether Tomcat is running"/> <condition property="tomcat.running"> <socket server="${tomcat.host}" port="${tomcat.port}"/> </condition> </target>
http://ant.apache.org/manual/Tasks/conditions.html
Source: https://habr.com/ru/post/891719/More articles:how long, by default, does things stay in httpcache unless I set an explicit expiration? - c #Phrase Detection and Comparison Algorithm - language-agnosticWhen should the save method be called in Django? - pythoniMessage inside your application (iOS5) - ios5Will doxygen use base class documents if the subclass does not provide its own? - doxygenPerl searches and replaces the last occurrence of a character - regexLinux channel: capturing ping real-time output via popen - c ++GLSL Geometry shader and general vertex attributes - glslConstellation Hypothesis in Mathematics - wolfram-mathematicaHow to import .sql file into SQL Server Express - sql-serverAll Articles