thanks it worked
-----Original Message-----
From: Dave Carpentier [mailto:[EMAIL PROTECTED]]
Sent: mardi 21 ao�t 2001 18:06
To: '[EMAIL PROTECTED]'
Subject: RE: FTP builder
Richard,
I believe you need the NetComponents.jar instead.
Dave
-----Original Message-----
From: Atherton Richard - Z9V
[mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 21, 2001 11:02 AM
To: '[EMAIL PROTECTED]'
Subject: FTP builder
I'm trying to use the ftp task, but I get the error 'Could not create task
of type: ftp' whenever I try to run ant. I have the optional.jar in the lib
directory: I don't understand what it's complaining about. Below is a
snippet from the build file and the log file - (I'm just starting with the
sample settings from the docs).
Any ideas any one?
Cheers,
Richard
********* BUILDFILE *********
<!-- ======================================================= -->
<!-- Now ftp the jar to the server -->
<!-- ======================================================= -->
<target name="ftpPhoenix" depends="jarPhoenix">
<ftp server="ftp.apache.org" port="2121"
remotedir="/pub/incoming"
userid="coder" password="java1"
depends="yes"
binary="yes" >
<fileset dir="htdocs/manual">
<include name="**/*.html"/>
</fileset>
</ftp>
</target>
********* LOG *********
Buildfile: buildall.xml
Detected Java Version: 1.2
Detected OS: Windows NT
parsing buildfile D:\Work\Phoenix\bin\buildall.xml with URI =
file:D:/Work/Phoenix/bin/buildall.xml
Project base dir set to: D:\Work\Phoenix
Build sequence for target `ftpPhoenix' is [ftpPhoenix]
Complete build sequence is [jarPhoenix, ftpPhoenix, clean, prepare, compile,
copyWeblogicProperties, javadocs, buildBeans]
ftpPhoenix:
BUILD FAILED
D:\Work\Phoenix\bin\buildall.xml:161: 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).
Total time: 1 second