ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antoine Lévy-Lambert <anto...@antbuild.com>
Subject AW: the ftp task
Date Fri, 12 Sep 2003 12:55:38 GMT

There is nothing to list directories in the ftp task.
You can get a listing of remote files.
The format of the listing is unfortunately "flat", it does not tell you in
which subdirectory the files have been found.

>From our documentation : http://ant.apache.org/manual/OptionalTasks/ftp.html

Listing Files

  <ftp action="list"
       server="ftp.apache.org"
       userid="anonymous"
       password="me@myorg.com"
       listing="data/ftp.listing"
       >
    <fileset>
      <include name="**"/>
    </fileset>
  </ftp>

This provides a file listing in data/ftp.listing of all the files on the FTP
server relative to the default directory of the anonymous user. The listing
is in whatever format the FTP server normally lists files.

Use the remotedir attribute to list the contents of a non-default directory.

Hopes this helps.


Antoine

-----Urspr√ľngliche Nachricht-----
Von: Jana Poornavel [mailto:JPOORNAVEL@Selectica.com]
Gesendet: Freitag, 12. September 2003 14:12
An: 'Ant Users List'
Betreff: the ftp task



could any body would help me out
use the ftp task to list the folders
and files present in a directiry
of a ftp server

jana


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


Mime
View raw message