ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conor MacNeill" <co...@cortexebusiness.com.au>
Subject Re: Newbee ftp question
Date Wed, 11 Apr 2001 11:36:44 GMT
Ravi,

Remove the <taskdef> and you should be OK. The taskdef is not necessary
since the ftp task is alread mapped in Ant's task list.

ftp=org.apache.tools.ant.taskdefs.optional.net.FTP

Also, the reason you get an error message is that you have taskdef'd the
wrong class.

Conor

----- Original Message -----
From: "Ravi Sikka" <Ravi.Sikka@LOSTWAX.COM>
To: <ant-user@jakarta.apache.org>
Sent: Wednesday, April 11, 2001 8:19 PM
Subject: Newbee ftp question


> I have installed the latest version of Ant and put
>
> jakarta-ant-1.3-optional.jar  and
> NetComponents.jar
>
> into ..\lib\optional
>
> In my build file I have
> <taskdef name="ftp" classname="com.oroinc.net.ftp.FTP"/>
> ..
> ..
> <target name="getfile" depends="init">
>    <ftp action="get" server="myserver" userid="wl510" password="sfaasd">
>       <fileset dir="." ><include name="**/license.txt"/></fileset>
>    </ftp>
> </target>
>
> but I just get:
> ..
> Buildfile: build.xml
> BUILD FAILED
> D:\autobuild\build.xml:26: Class com.oroinc.net.ftp.FTP doesn't support
the
> nested "fileset" element
>
>
> I've tried to change the class name specified in them taskname to
FTPClient
> and FTPCommand with no luck.
>
> Can anybody help?
>
>
>
>
>
> Ravi Sikka
> Software Developer
>
> Lost Wax
> 1 Dee Road, Richmond, Surrey TW9 2JN
> t +44 (0)20 8948 9586| f +44 (0)20 8948 9596 |  <http://www.lostwax.com/>
> http://www.lostwax.com
>
>
>


Mime
View raw message