diff --git a/docs/manual/OptionalTasks/ftp.html b/docs/manual/OptionalTasks/ftp.html index 270e32b75..3108ab887 100644 --- a/docs/manual/OptionalTasks/ftp.html +++ b/docs/manual/OptionalTasks/ftp.html @@ -12,7 +12,7 @@

Note: The ftp-task uses the NetComponents-Package which you will need to download from http://www.savarese.org and add to your classpath.

The ftp task implements a basic FTP client that can send, receive, -list, and delete files. See below for descriptions and examples of how +list, delete files, and create directories. See below for descriptions and examples of how to perform each task.

The ftp task makes no attempt to determine what file system syntax is required by the remote server, and defaults to Unix standards. @@ -61,7 +61,7 @@ write patterns.

action the ftp action to perform, defaulting to "send". Currently supports "put", "get", - "del", and "list". + "del", "list" and "mkdir". No @@ -218,7 +218,7 @@ If you don't have permission to delete a file, a BuildException is thrown.

   <ftp action="list"
        server="ftp.apache.org"
-       userid=quot;anonymous"
+       userid="anonymous"
        password="me@myorg.com" 
        listing="data/ftp.listing" >
     <fileset>
@@ -229,6 +229,20 @@ If you don't have permission to delete a file, a BuildException is thrown.

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.

+ +

Creating Directories

+

Note that with the mkdir action, the directory to create is specified using the +remotedir attribute.

+
+  <ftp action="mkdir"
+       server="ftp.apache.org"
+       userid="anonymous"
+       password="me@myorg.com" 
+       remotedir="some/remote/dir" />
+
+

This creates the directory some/remote/dir beneath the default root +directory. As with all other actions, the directory separator character must be correct +according to the desires of the FTP server.


Copyright © 2000,2001 Apache Software Foundation. All rights Reserved.