You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by "Larry V. Streepy, Jr." <st...@healthlanguage.com> on 2001/07/27 23:21:21 UTC

Re: [PATCH] Updated FTP.java

Stefan Bodewig wrote:
> 
> Larry,
> 
> I've committed the patch (combined with another one).  You now owe us
> a documentation patch for the "mkdir" action - to be sent to ant-dev
> 8-)

As requested, here is the patch for the ftp.html file.

Index: thirdparty/jakarta-ant-1.3/docs/manual/OptionalTasks/ftp.html
diff -c thirdparty/jakarta-ant-1.3/docs/manual/OptionalTasks/ftp.html:1.1 thirdparty/jakarta-ant-1.3/docs/manual/OptionalTasks/ftp.html:1.2
*** thirdparty/jakarta-ant-1.3/docs/manual/OptionalTasks/ftp.html:1.1	Mon May 28 09:15:39 2001
--- thirdparty/jakarta-ant-1.3/docs/manual/OptionalTasks/ftp.html	Fri Jul 27 09:20:41 2001
***************
*** 12,18 ****
  <p><b>Note:</b> The ftp-task uses the NetComponents-Package which you will need to download from
  <a href="http://www.savarese.org" target="_top">http://www.savarese.org</a> and add to your classpath.</p>
  <p>The ftp task implements a basic FTP client that can send, receive,
! list, and delete files.  See below for descriptions and examples of how
  to perform each task.</p>
  <p>The ftp task makes no attempt to determine what file system syntax is
  required by the remote server, and defaults to Unix standards.
--- 12,18 ----
  <p><b>Note:</b> The ftp-task uses the NetComponents-Package which you will need to download from
  <a href="http://www.savarese.org" target="_top">http://www.savarese.org</a> and add to your classpath.</p>
  <p>The ftp task implements a basic FTP client that can send, receive,
! list, delete files, and create directories.  See below for descriptions and examples of how
  to perform each task.</p>
  <p>The ftp task makes no attempt to determine what file system syntax is
  required by the remote server, and defaults to Unix standards.
***************
*** 61,67 ****
      <td valign="top">action</td>
      <td valign="top">the ftp action to perform, defaulting to &quot;send&quot;.  
                       Currently supports &quot;put&quot;, &quot;get&quot;,
!                      &quot;del&quot;, and &quot;list&quot;.</td>
      <td valign="top" align="center">No</td>
    </tr>
    <tr>
--- 61,67 ----
      <td valign="top">action</td>
      <td valign="top">the ftp action to perform, defaulting to &quot;send&quot;.  
                       Currently supports &quot;put&quot;, &quot;get&quot;,
!                      &quot;del&quot;, &quot;list&quot; and &quot;mkdir&quot;.</td>
      <td valign="top" align="center">No</td>
    </tr>
    <tr>
***************
*** 204,210 ****
  <pre>
    &lt;ftp action=&quot;list&quot;
         server=&quot;ftp.apache.org&quot;
!        userid=quot;anonymous&quot;
         password=&quot;me@myorg.com&quot; 
         listing=&quot;data/ftp.listing&quot; &gt;
      &lt;fileset&gt;
--- 204,210 ----
  <pre>
    &lt;ftp action=&quot;list&quot;
         server=&quot;ftp.apache.org&quot;
!        userid=&quot;anonymous&quot;
         password=&quot;me@myorg.com&quot; 
         listing=&quot;data/ftp.listing&quot; &gt;
      &lt;fileset&gt;
***************
*** 215,220 ****
--- 215,234 ----
  <p>This provides a file listing in <code>data/ftp.listing</code> of all the files on
  the FTP server relative to the default directory of the <code>anonymous</code>
  user. The listing is in whatever format the FTP server normally lists files.</p>
+ 
+ <h3>Creating Directories</h3>
+ <p>Note that with the mkdir action, the directory to create is specified using the
+ remotedir attribute.</p>
+ <pre>
+   &lt;ftp action=&quot;mkdir&quot;
+        server=&quot;ftp.apache.org&quot;
+        userid=&quot;anonymous&quot;
+        password=&quot;me@myorg.com&quot; 
+        remotedir=&quot;some/remote/dir&quot; /&gt;
+ </pre>
+ <p>This creates the directory <code>some/remote/dir</code> 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.</p>
  <hr>
  <p align="center">Copyright &copy; 2000,2001 Apache Software Foundation. All rights
  Reserved.</p>

-- 
Larry V. Streepy, Jr.
Chief Technical Officer and VP of Engineering

Health Language, Inc.  -- "We speak the language of healthcare"

970/626-5028 (office)           mailto:streepy@healthlanguage.com
970/626-4425 (fax)              http://www.healthlanguage.com