Hello,
I am getting an error when I try to run my build script with the optional
telnet task in the target. Below is my output, followed by the
configuration and build.xml file. Interestingly, I can get the ftp task to
work just fine, but not telnet. Thanks for any help.
OUTPUT:
----------------------------------------
C:\ant>ant remote_prepare
Buildfile: build.xml
BUILD FAILED
C:\ant\build.xml:171: Unexpected element "telnet"
Total time: 0 seconds
----------------------------------------
CONFIGURATION:
----------------------------------------
OS: Win2K Professional
ANT_HOME: C:\ANT
Ant version: 1.4.1
Java Version: 1.3.1
Libraries: I have placed jakarta-ant-1.4.1-optional.jar and the
NetComponents.jar in the lib directory in ANT_HOME
----------------------------------------
BUILD.XML
----------------------------------------
<?xml version="1.0"?>
<project name="test_telnet" default="main" basedir=".">
<taskdef name="telnet"
classname="org.apache.tools.ant.taskdefs.optional.net.TelnetTask"/>
<target name="remote_ls">
<telnet userid="myid" password="mypwd" server="myserver">
<write>ls</write>
</telnet>
</target>
<target name="main" depends="remote_ls" />
<!-- =============================== Help ===============================
-->
<target name="targets">
<echo message=" main " />
<echo message=" remote_ls " />
</target>
</project>
----------------------------------------
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>