ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niaz Habib" <n...@niazhabib.com>
Subject FTP optional task does not find the class
Date Wed, 09 Apr 2003 03:47:37 GMT

Following is the code from test build script

<project name="test" default="test" basedir=".">
  <target name="test">
    <taskdef name="ftp"
classname="org.apache.tools.ant.taskdefs.optional.net.FTP"
classpath="/opt/ant/lib/optional.jar;/opt/ant/lib/ant.jar;/opt/ant/lib/N
etComponents.jar" />
      <ftp server="my_ftp_server"
           userid="my_userid"
           password="my_password">
        <fileset dir=".">
            <include name="my_file.txt"/>
        </fileset>
      </ftp>
  </target>
</project>


Running ant causes the following output:

Buildfile: build.xml

test:

BUILD FAILED
file:/home/niaz/test/build.xml:3: taskdef class
org.apache.tools.ant.taskdefs.optional.net.FTP cannot be found

Total time: 10 seconds




(Do I even need to add optional.jar in classpath attribute for taskdef
element? Shouldn't bootstrap load that during initialization? I tried
without it too.)


Any help would be appreciated.

I am using Ant Version 1.5.1



Niaz Habib



Mime
View raw message