ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chuck Stern <>
Subject RE: Unexpected element "ftp"
Date Thu, 24 Jan 2002 11:34:46 GMT
Did you verify the FTP classes where in the optional.jar your using?  I ran
into this problem with FTP and I went through the mailing list trying
everything.  Turned out the class was missing and had to find a different
version that included it.  That's the first thing I check when I see this
error.  I'm pretty sure the current nightly build has it missing, I'm not
sure when in the process it would get added.


-----Original Message-----
From: Stephen Huey []
Sent: Wednesday, January 23, 2002 4:21 PM
Subject: Unexpected element "ftp"

Okay, I've been trying to get Netcomponent's optional
ftp task to work,
and I went over to one of there mailing lists, but
someone was pretty
sure my problem was just an Ant config one.  He was a
Linux user, and threw
the simple ftp task tag block from my buildfile.xml
into some of his code,
and it successfully attempted to open a connection to
my server.  So, we've
established that I didn't make an error there.

However, I've posted on here lately, and I've tried
all the suggestions, but still nothing works.  I
successfully set ANT_HOME and JAVA_HOME and the PATH.
In fact, I've successfully compiled with Ant--I just
can't get the optional ftp task to work.

Basically, I downloaded NetComponents' stuff
(including the JAR file
necessary), and I've tried all sorts of different
things--like putting
the JAR file in my ant\lib directory, making sure that
that's in the
CLASSPATH, and yes, I also have the optional JAR that
you're supposed to download and stick into your
ant\lib directory (and it's in my classpath, too).
I've tried this in both WinME and Win2000, but to no
avail.  Is there anything I need in the buildfile
besides the following code:

<ftp server=""
    <fileset dir="build"/>

Do I need a loadlib or taskdef or something like that,
or SHOULD it be automatic?

It still generates an error.  Please help!  The last
part of the error message with -debug turned on looks
like this:


C:\antfiles\buildfile.xml:20: Unexpected element "ftp"

Total time: 0 seconds

Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message