求助:Ant輿h程Appserver

blood發表於2006-04-10
想在本C上絛ant輿h程C器上的tomcat,除了用ant的telnet,有其它k法幔苛磽猓以詒C上_telnet,在命令列絛telnet 127.0.0.1等等接可用。以下ant_本絛校
<target name="test-telnet" >
<property name="server" value="127.0.0.1"/>
<property name="prompt" value="C:\>"/>
<property name="command" value="dir"/>
<telnet server="${server}"
userid="username"
password="password"
timeout="5">
<read string="${prompt}"/>
<write string="${command}"/>
<read string="${prompt}"/>
</telnet>
<sleep seconds="1"/>
</target>
是提示:
BUILD FAILED
E:\workspace\test\build.xml:180: Response timed-out waiting for "C:\>"
@是槭顫N?

相關文章