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 directory.


Gilles

2007/11/21, jonathan doklovic <[EMAIL PROTECTED]>:
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="http://mydomain.com/myfolder"; 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






--
Steve Loughran                  http://www.1060.org/blogxter/publish/5
Author: Ant in Action           http://antbook.org/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to