Click to See Complete Forum and Search --> : ant telnet


meteyalc
06-27-2005, 07:05 AM
Hi,
I'm trying to process telnet operation in ant. But I can't. My code is below. It's very simple now.

<?xml version="1.0"?>

<project name="proj1" default="deploy">

<target name="init">
<taskdef name="telnet" classname="org.apache.tools.ant.taskdefs.optional.net.TelnetTask"/>
</target>

<target name="deploy" depends="init">
<telnet server="asdnn.org" userid="****" password="****" timeout="20">
</telnet>
</target>

</project>

I can not find org.apache.tools.ant.taskdefs.optional.net.TelnetTask class. Does anyone have jar containing this java class or have any idea how I can process telnet in ant??

Khalid Ali
06-28-2005, 01:30 PM
my vote will be that you can not use telnet as yet with ANT, as far as I know you can use ftp and such using ANT,
the best place will be apache.org and see if u can find out the latest ant task inclusion info.If you do find out please post your findings here for rest of those who might be looking for same info