Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ANT タスクを使用してポートが開いているかどうかを確認することはできますか?
flexunit タスクを実行する必要がありますが、このタスクを開始する前に、別の flexunit タスクが実行されておらず、目的のポートをブロックしていないかどうかを確認する必要があります。
ご提案ありがとうございます。
ラファル
アリソケット条件を使用します。
<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