I am trying to get a telnet task working from within a maven plugiin I
am writing. While testing I find that the telnet task will run
successfully once, but then time out on subsequent tries. If I come back
to it after doing other work, it will run successfully again - but just
one. Then it starts timing out again.
Here is how the task is defined:
<ant:taskdef name="telnet"
classname="org.apache.tools.ant.taskdefs.optional.net.TelnetTask">
<ant:classpath>
<ant:pathelement
location="${plugin.getDependencyPath('netcomponents:netcomponents')}"/>
<ant:path refid="maven.dependency.classpath"/>
</ant:classpath>
</ant:taskdef>
<telnet server="${inst.server}" timeout="60">
<read string="ogin:"/>
<write string="${inst.user}"/>
<read string="assword:"/>
<write echo="false" string="${inst.passwd}"/>
<read string="$"/>
<write string="${inst.bin} ${inst.type}
${pom.artifactId} ${inst.env} ${inst.xml}${build.major}${build.minor}
${build.number} " />
<read string="$"/>
<write echo="true" string="exit"/>
</telnet>
Are there someother switches to throw in the telnet task to make it
behave? Anything else I might be missing?
tia - paul
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]