ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Donald <>
Subject Re: Difficulty getting FTP to work
Date Tue, 20 Mar 2001 23:25:44 GMT
At 02:41  20/3/01 -0600, DUBCHAK, JOHN [Non-Pharmacia/1000] wrote:
>I've downloaded the NetComponent add-in for Ant in order to use the optional
>FTP tag.  I copied the NetComponents.jar file into the ANT_HOME\lib
>directory on a Win95 machine and I have the following code in my build.xml:
><target name="deploy" depends="dist">
>  <!-- FTP to the server the final ${dist} file -->
>  <ftp  server="myserver"
>        remotedir="/home/John"
>        userid="userid"
>        password="password">
>    <fileset dir="${dist}/lib"/>
>  </ftp>
>But I get the following error when I run with "ant deploy" from the command
>build.xml:36: Could not create task of type: ftp. Common solutions are to
>use taskdef to declare your task, or, if this is an optional task, to put
>the optional.jar in the lib directory of your ant installation (ANT_HOME).
>If anyone has any insight into what I am doing wrong I would greatly
>appreciate it.

Have you downloaded optional.jar and placed it in ANT_HOME/lib ? If so does
it contain a FTP.class ?


| "Faced with the choice between changing one's mind, |
| and proving that there is no need to do so - almost |
| everyone gets busy on the proof."                   |
|              - John Kenneth Galbraith               |

View raw message