kjp*_*kjp 10
使用ant socket条件.
<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>
Run Code Online (Sandbox Code Playgroud)
http://ant.apache.org/manual/Tasks/conditions.html
| 归档时间: |
|
| 查看次数: |
4666 次 |
| 最近记录: |