ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <>
Subject Re: List/Download folder from http?
Date Thu, 22 Nov 2007 10:07:27 GMT
Gilles Scokart wrote:
> The problem is that it will depends on your server.  The http server must be
> configure to list the content of the directory.  And it will do that using
> some specific format that the listing code will have to parse.  However, I
> asume that different http server can provide this listing using different
> format.
> I'm not aware of any standard format for directory listing.  Does that
> exists?

no; even FTP has a non-standard structure that causes lots of support calls.

1. use scp if you can
2. publish a manifest document (properties? xml?) and somehow use that
3.the wget command on unix/linux can fetch everything linked under a 

> Gilles
> 2007/11/21, jonathan doklovic <>:
>> Hi,
>> I need to write a target that can download all xml files from a folder
>> on a web server.
>> I know I can use the get task to get a specific file, as well as using
>> VFS to do the same, but I haven't found any way to get an entire folder
>> of files.
>> I would really like something like this:
>> <get src="" dest="/tmp/xmlfiles"
>> include="**/*.xml"/>
>> However, even if I could find a task that would just list the files in a
>> web directory, I could then use ant-contrib and get to loop over them.
>> Anyone know of a way to do this?
>> - Jonathan
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail:
>> For additional commands, e-mail:

Steve Loughran        
Author: Ant in Action 

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

View raw message