ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fend <f...@nc.rr.com>
Subject optional task FTP not loading
Date Wed, 27 Nov 2002 19:07:03 GMT
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="me@myorg.com"
         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/jre/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/lib/xalan.jar\:/usr/share/log4j/lib/log4j-1.2.5.jar\:/usr/share/junit/lib/junit.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/share/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:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message