Are you using the binary distribution of ant? Or did you compile ant from source? My guess is that you compiled it from source, in which case you needed to have the NetComponents.jar on your classpath when you compiled ant. The ant build.xml checks for the availabitility of the dependent classes in NetComponents.jar, and if they are not available it does not compile the FTP classes. Try the binary dist and add the NetComponents.jar, or just put the NetComponents.jar on your classpath and recompile ant from the source.
-----Original Message----- From: Fend [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 27, 2002 11:07 AM To: [EMAIL PROTECTED] Subject: optional task FTP not loading Hello, I'm having a heck of a time trying to get <FTP> working. I've searched all the message boards I can find and I'm stumped as for what might be wrong. The optional task <junit> is working. my ant tast is basicly cut off the website. <target name="download-xml" description="downloads the XML from webserver"> <echoproperties/> <ftp action="list" server="ftp.apache.org" userid="anonymous" password="[EMAIL PROTECTED]" listing="data/ftp.listing"> <fileset> <include name="**"/> </fileset> </ftp> </target> The error message I am getting is: Could not create task or type of type: ftp. Ant could not find the task or a class this task relies upon. etc... $ ls /usr/share/ant/lib NetComponents.jar junit.jar optional.jar Could not load class (org.apache.tools.ant.taskdefs.optional.net.FTP) for task ftp xml-apis.jar ant.jar netcomponents.jar xercesImpl.jar Apache Ant version 1.5.1 compiled on November 22 2002 Detected Java version: 1.4 in: /opt/sun-j2sdk-1.4.0/jre Detected OS: Linux [echoproperties] ant.home=/usr/share/ant [echoproperties] java.runtime.version=1.4.0-gentoo-1037525665 [echoproperties] java.version=1.4.0-gentoo [echoproperties] java.endorsed.dirs=/opt/sun-j2sdk-1.4.0/jre/lib/endorsed [echoproperties] os.version=2.4.19-gentoo-r9 [echoproperties] java.library.path=/opt/sun-j2sdk-1.4.0/jre/lib/i386/client\:/opt/sun-j2sdk-1 .4.0/jre/lib/i386\:/opt/sun-j2sdk-1.4.0/jre/../lib/i386 [echoproperties] java.class.path=/opt/sun-j2sdk-1.4.0/jre/lib/rt.jar\:/opt/sun-j2sdk-1.4.0/jr e/lib/rt.jar\:.\:/opt/sun-j2sdk-1.4.0/jre/lib/rt.jar\:/usr/share/xerces/lib/ xercesImpl.jar\:/usr/share/xerces/lib/xercesSamples.jar\:/usr/share/xalan/li b/xalan.jar\:/usr/share/log4j/lib/log4j-1.2.5.jar\:/usr/share/junit/lib/juni t.jar\:/usr/share/junit/lib/src.jar\:/usr/share/ant/lib/ant.jar\:/usr/share/ regexp/lib/regexp-1.2.jar\:/usr/share/randomguid/lib/RandomGUID.jar\:/usr/sh are/java-getopt/lib/gnu.getopt.jar\:.\:/usr/share/ant/lib/ant.jar\:/opt/sun- j2sdk-1.4.0/lib/tools.jar Could not load class (org.apache.tools.ant.taskdefs.optional.net.FTP) for task ftp netcomponents.jar is version 1.3.8 I've tried having the optional.jar on and off the classpath, as well as netcomponents.jar Any help is greatly appreciated. Thanks, Fend -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>