ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Cohen <sco...@javactivity.org>
Subject Re: Ant1.6 - FTP task with MS FTP
Date Fri, 06 Feb 2004 11:30:07 GMT
By the way, this is located at 
http://jakarta.apache.org/commons/net/cvs-usage.html

On Friday 06 February 2004 5:26 am, Steve Cohen wrote:
> I am a committer on commons-net and I have submitted code changes to
> commons-net that solve this problem.  If you pull down the latest code from
> commons-net, build, and replace the jar on your classpath, this will now
> work.
>
> We on commons-net are planning to release a new version of commons-net in
> the reasonably near future.  But the latest CVS code there will solve this
> problem, without requiring any changes to ant.
>
> On Friday 06 February 2004 5:13 am, Jan.Materne@rzf.fin-nrw.de wrote:
> > donĀ“t know, but a quick search on jakarta-commons mailinglist gave
> > "listing and deleting files returns zero" [1] where Douglas Reith wrote
> > about a similar problem.
> >
> >
> > Jan
> >
> >
> > [1]
> > http://marc.theaimsgroup.com/?l=jakarta-commons-user&m=102681949406878&w=
> >2
> >
> > > -----Original Message-----
> > > From: Elischer, Matt (M.) [mailto:melisch1@ford.com]
> > > Sent: Friday, February 06, 2004 12:02 PM
> > > To: 'user@ant.apache.org'
> > > Subject: Ant1.6 - FTP task with MS FTP
> > >
> > >
> > > Hi all,
> > >
> > > I'm trying to retrieve a file from a MS FTP server with
> > > Ant1.6.0.  I'm using JDK1.3.1 and commons-net-1.1.0.jar.  My
> > > target is as follows:
> > >
> > > 	<target name="retrieve_content" description="retrieves
> > > content from FTP box">
> > > 		<ftp action="get" server="${ftp_server}"
> > > userid="${ftp_username}" password="${ftp_password}"
> > > remotedir="${ftp_remotedir}">
> > > 		    	<fileset dir="${content.download.dir}">
> > > 	      			<include name="test.zip"/>
> > > 		      	</fileset>
> > > 		</ftp>
> > > 	</target>
> > >
> > > The "ls -l" format is:
> > > 02-05-04  04:18PM              5330144 test.zip
> > > 01-12-04  10:10AM              5326962 test1.zip
> > > 02-03-04  03:39PM             41314968 test2.zip
> > >
> > > Trying both a "get" and a "list" produces the following
> > > (verbose) output (ie. 0 files listed):
> > > retrieve_content:
> > >       [ftp] Opening FTP connection to xxx.xxxx.xxx
> > >       [ftp] connected
> > >       [ftp] logging in to FTP server
> > >       [ftp] login succeeded
> > >       [ftp] changing the remote directory
> > >       [ftp] listing files
> > >       [ftp] 0 files listed
> > >       [ftp] disconnecting
> > >
> > > It seems that the problem is something to do with the parsing
> > > of the file listings, as I've confirmed I am connecting
> > > properly, and navigating to the correct remote dir.  I've
> > > also confirmed that the target works on a Unix FTP server.  I
> > > read one posting suggesting that there is a flag that can be
> > > set for MS FTP servers?  Any ideas on how I can get this task
> > > to with MS FTP would be greatly appreciated.
> > >
> > > Cheers,
> > > -matt
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message