You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "VELPULA, Ashok Kumar" <as...@digitalfive.com> on 2009/01/20 09:07:54 UTC
ANT FTP Error
Hi
I have been trying to connect FTP using the ANT 1.7.1 below is my sample
script:
<project name="MyProject" default="Display-Builtins">
<property name="ftp.password" value="abc" />
<ftp server="someftp.ftp" userid="abc"
password="${ftp.password}">
<fileset file="Bin.zip" />
</ftp>
</project>
Result: Could not create type ftp due to java.lang.NoClassDefFoundError:
org/apache/commons/net/ftp/FTPClientConfig
But when I execute I receive errors where do I get to download the FTP
libraries for the ANT to execute the script.
Thanks
Ashok Kumar
Re: ANT FTP Error
Posted by Peter Reilly <pe...@gmail.com>.
See:
http://ant.apache.org/manual/install.html#librarydependencies
you need commons-net.jar and (it seems) jakarta-oro.jar.
Place these files in $HOME/.ant/lib, or in $ANT_HOME/lib and
the ftp task should work.
Peter
On Tue, Jan 20, 2009 at 8:07 AM, VELPULA, Ashok Kumar
<as...@digitalfive.com> wrote:
> Hi
>
>
>
> I have been trying to connect FTP using the ANT 1.7.1 below is my sample
> script:
>
>
>
> <project name="MyProject" default="Display-Builtins">
>
> <property name="ftp.password" value="abc" />
>
>
>
> <ftp server="someftp.ftp" userid="abc"
> password="${ftp.password}">
>
> <fileset file="Bin.zip" />
>
> </ftp>
>
>
>
> </project>
>
>
>
> Result: Could not create type ftp due to java.lang.NoClassDefFoundError:
> org/apache/commons/net/ftp/FTPClientConfig
>
>
>
> But when I execute I receive errors where do I get to download the FTP
> libraries for the ANT to execute the script.
>
>
>
> Thanks
>
> Ashok Kumar
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org