At 02:41 20/3/01 -0600, DUBCHAK, JOHN [Non-Pharmacia/1000] wrote:
>Hi,
>
>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>
></target>
>
>But I get the following error when I run with "ant deploy" from the command
>line:
>
>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 ?
Cheers,
Pete
*-----------------------------------------------------*
| "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 |
*-----------------------------------------------------*