ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject RE: FTP and socksified
Date Mon, 14 May 2001 19:57:49 GMT
Ok...I've figured out part of my problem was that I needed to use the
taskdef function in order for ant to even think about using the
netcomponents FTP class file.  But, now I have a different problem which I'm
not sure how to approach.
When the FTP task starts, I get an error that
says,"C:\ant.ARMS\Build\build.xml:26: Class doesn't
support the "server" attribute
My build.xml file has this:
 <ftp server=""
 <fileset dir="lib"/>
If I leave the fileset element in the ftp task, I get an error that it won't
support nested "fileset" element.  With the fileset task defined at a higher
level right after the project def I get the error that you see above.  It
acts like the netcomponents.jar file is completely the wrong set of class
files to use, however, I followed the link from the Ant optional task/FTP
section in the manual to obtain the netcomponents.jar file.
Does anyone have any ideas?
Curtis Krouse
Agilent Technologies, Inc.

-----Original Message-----
From: []
Sent: Monday, May 14, 2001 8:52 AM
Subject: RE: FTP and socksified

I'm sorry if I wasn't clear in my message.  I did try putting the
netcomponents.jar file in the \lib directory in ANT_HOME, with no difference
in the result.  Any more suggestions?
Curtis Krouse
-----Original Message-----
From: Jeff Post []
Sent: Friday, May 11, 2001 4:37 PM
To: ''
Subject: RE: FTP and socksified

Try putting netcomponents.jar in the directory ANT_HOME\lib

-----Original Message-----
From: []
Sent: Friday, May 11, 2001 4:17 PM
Subject: FTP and socksified

Hi everyone,
I am new to Ant.  In fact, this is my first post to the user group.
I have a build.xml file that I'm working on and one of the targets is a
"deploy" target.  I'm trying to FTP the jar file to a server that is outside
our firewall.  To do this manually I have to use socks, but it mentions
nothing about this in the Ant manual.  The build file gives me an error that
C:\ant.XXX\Build\build.xml:26: Could not create task of type: ftp. Common
ions are to use taskdef to declare your task, or, if this is an optional
task, t
o put the optional.jar in the lib directory of your ant installation
I've moved the netcomponents.jar file to the ANT_HOME directory with no joy.
Does anyone know if the problem is not being able to socksify the FTP?  Is
there a way to socksify an FTP target in Ant?  Am I missing some important
concept here?
Curtis Krouse
Agilent Technologies, Inc.
Spokane, WA 


View raw message