From 73b52c9fd945965746a7f2c51a164e8ccbc7d67b Mon Sep 17 00:00:00 2001 From: "Steven M. Cohen" Date: Tue, 17 May 2005 23:33:51 +0000 Subject: [PATCH] remove unnecessary " marks. git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278283 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/OptionalTasks/ftp.html | 208 ++++++++++++++--------------- 1 file changed, 104 insertions(+), 104 deletions(-) diff --git a/docs/manual/OptionalTasks/ftp.html b/docs/manual/OptionalTasks/ftp.html index ee407320f..1a4aac96c 100644 --- a/docs/manual/OptionalTasks/ftp.html +++ b/docs/manual/OptionalTasks/ftp.html @@ -74,35 +74,35 @@ coming from your ftp server (ls -l on the ftp prompt). action - the ftp action to perform, defaulting to "send". - Currently supports "put", "get", - "del", "list", "chmod", - "mkdir" and "rmdir". + the ftp action to perform, defaulting to "send". + Currently supports "put", "get", + "del", "list", "chmod", + "mkdir" and "rmdir". No binary - selects binary-mode ("yes") or text-mode - ("no") transfers. - Defaults to "yes" + selects binary-mode ("yes") or text-mode + ("no") transfers. + Defaults to "yes" No passive - selects passive-mode ("yes") transfers. - Defaults to "no" + selects passive-mode ("yes") transfers. + Defaults to "no" No verbose displays information on each file transferred if set - to "yes". Defaults to "no". + to "yes". Defaults to "no". No depends transfers only new or changed files if set to - "yes". Defaults to "no". + "yes". Defaults to "no". No @@ -113,7 +113,7 @@ coming from your ftp server (ls -l on the ftp prompt). timediffauto - set to "true" + set to "true" to make ant calculate the time difference between client and server.
requires write access in the remote directory
Since ant 1.6 @@ -130,7 +130,7 @@ coming from your ftp server (ls -l on the ftp prompt). separator sets the file separator used on the ftp server. - Defaults to "/". + Defaults to "/". No @@ -147,8 +147,8 @@ coming from your ftp server (ls -l on the ftp prompt). listing - the file to write results of the "list" action. - Required for the "list" action, ignored otherwise. + the file to write results of the "list" action. + Required for the "list" action, ignored otherwise. No @@ -387,36 +387,36 @@ Remote filesets do not support selectors.

Sending Files

The easiest way to describe how to send files is with a couple of examples:

-  <ftp server="ftp.apache.org"
-       userid="anonymous"
-       password="me@myorg.com">
-    <fileset dir="htdocs/manual"/>
+  <ftp server="ftp.apache.org"
+       userid="anonymous"
+       password="me@myorg.com">
+    <fileset dir="htdocs/manual"/>
   </ftp>
 

Logs in to ftp.apache.org as anonymous and uploads all files in the htdocs/manual directory to the default directory for that user.

-
  <ftp server="ftp.apache.org"
-       remotedir="incoming"
-       userid="anonymous"
-       password="me@myorg.com"
-       depends="yes">
-    <fileset dir="htdocs/manual"/>
+
  <ftp server="ftp.apache.org"
+       remotedir="incoming"
+       userid="anonymous"
+       password="me@myorg.com"
+       depends="yes">
+    <fileset dir="htdocs/manual"/>
   </ftp>

Logs in to ftp.apache.org as anonymous and uploads all new or changed files in the htdocs/manual directory to the incoming directory relative to the default directory for anonymous.

-
  <ftp server="ftp.apache.org"
-       port="2121"
-       remotedir="/pub/incoming"
-       userid="coder"
-       password="java1"
-       passive="yes"
-       depends="yes"
-       binary="no">
-    <fileset dir="htdocs/manual">
-      <include name="**/*.html"/>
+
  <ftp server="ftp.apache.org"
+       port="2121"
+       remotedir="/pub/incoming"
+       userid="coder"
+       password="java1"
+       passive="yes"
+       depends="yes"
+       binary="no">
+    <fileset dir="htdocs/manual">
+      <include name="**/*.html"/>
     </fileset>
   </ftp>

Logs in to ftp.apache.org at port 2121 as @@ -424,17 +424,17 @@ for anonymous.

changed HTML files in the htdocs/manual directory to the /pub/incoming directory. The files are transferred in text mode. Passive mode has been switched on to send files from behind a firewall.

-
  <ftp server="ftp.hypothetical.india.org"
-       port="2121"
-       remotedir="/pub/incoming"
-       userid="coder"
-       password="java1"
-       depends="yes"
-       binary="no"
-       systemTypeKey="Windows"
-       serverTimeZoneConfig="India/Calcutta">
-    <fileset dir="htdocs/manual">
-      <include name="**/*.html"/>
+
  <ftp server="ftp.hypothetical.india.org"
+       port="2121"
+       remotedir="/pub/incoming"
+       userid="coder"
+       password="java1"
+       depends="yes"
+       binary="no"
+       systemTypeKey="Windows"
+       serverTimeZoneConfig="India/Calcutta">
+    <fileset dir="htdocs/manual">
+      <include name="**/*.html"/>
     </fileset>
   </ftp>

Logs in to a Windows server at ftp.hypothetical.india.org @@ -443,14 +443,14 @@ and uploads all new or changed (accounting for timezone differences) HTML files in the htdocs/manual directory to the /pub/incoming directory. The files are transferred in text mode.

-
  <ftp server="ftp.nt.org"
-       remotedir="c:\uploads"
-       userid="coder"
-       password="java1"
-       separator="\"
-       verbose="yes">
-    <fileset dir="htdocs/manual">
-      <include name="**/*.html"/>
+
  <ftp server="ftp.nt.org"
+       remotedir="c:\uploads"
+       userid="coder"
+       password="java1"
+       separator="\"
+       verbose="yes">
+    <fileset dir="htdocs/manual">
+      <include name="**/*.html"/>
     </fileset>
   </ftp>

Logs in to the Windows-based ftp.nt.org as coder with password java1 and uploads all @@ -464,12 +464,12 @@ use the remotedir attribute as the base directory for the files on the FTP server, and the dir attribute as the local directory to put the files into. The file structure from the FTP site is preserved on the local machine.

-  <ftp action="get"
-       server="ftp.apache.org"
-       userid="anonymous"
-       password="me@myorg.com">
-    <fileset dir="htdocs/manual">
-      <include name="**/*.html"/>
+  <ftp action="get"
+       server="ftp.apache.org"
+       userid="anonymous"
+       password="me@myorg.com">
+    <fileset dir="htdocs/manual">
+      <include name="**/*.html"/>
     </fileset>
   </ftp>
 
@@ -477,14 +477,14 @@ into. The file structure from the FTP site is preserved on the local machine.htdocs/manual directory on the local machine.

-  <ftp action="get"
-       server="ftp.apache.org"
-       userid="anonymous"
-       password="me@myorg.com"
+  <ftp action="get"
+       server="ftp.apache.org"
+       userid="anonymous"
+       password="me@myorg.com"
        systemTypeKey="UNIX"
-       defaultDateFormatConfig="yyyy-MM-dd HH:mm">
-    <fileset dir="htdocs/manual">
-      <include name="**/*.html"/>
+       defaultDateFormatConfig="yyyy-MM-dd HH:mm">
+    <fileset dir="htdocs/manual">
+      <include name="**/*.html"/>
     </fileset>
   </ftp>
 
@@ -495,15 +495,15 @@ numeric timestamps. The systemTypeKey is not necessary here but helps clarify what is going on.

-  <ftp action="get"
-       server="ftp.hypthetical.fr"
-       userid="anonymous"
-       password="me@myorg.com"
-       defaultDateFormatConfig="d MMM yyyy"
-       recentDateFormatConfig="d MMM HH:mm"
-       serverLanguageCodeConfig="fr">
-     <fileset dir="htdocs/manual">
-      <include name="**/*.html"/>
+  <ftp action="get"
+       server="ftp.hypthetical.fr"
+       userid="anonymous"
+       password="me@myorg.com"
+       defaultDateFormatConfig="d MMM yyyy"
+       recentDateFormatConfig="d MMM HH:mm"
+       serverLanguageCodeConfig="fr">
+     <fileset dir="htdocs/manual">
+      <include name="**/*.html"/>
     </fileset>
   </ftp>
 
@@ -519,12 +519,12 @@ filesets are relative to the remote directory, not a local directory. In fact, the dir attribute of the fileset is ignored completely.
-  <ftp action="del"
-       server="ftp.apache.org"
-       userid="anonymous"
-       password="me@myorg.com">
+  <ftp action="del"
+       server="ftp.apache.org"
+       userid="anonymous"
+       password="me@myorg.com">
     <fileset>
-      <include name="**/*.tmp"/>
+      <include name="**/*.tmp"/>
     </fileset>
   </ftp>
 
@@ -533,13 +533,13 @@ tries to delete all *.tmp files from the default directory for that user. If you don't have permission to delete a file, a BuildException is thrown.

Listing Files

-  <ftp action="list"
-       server="ftp.apache.org"
-       userid="anonymous"
-       password="me@myorg.com" 
-       listing="data/ftp.listing">
+  <ftp action="list"
+       server="ftp.apache.org"
+       userid="anonymous"
+       password="me@myorg.com"
+       listing="data/ftp.listing">
     <fileset>
-      <include name="**"/>
+      <include name="**"/>
     </fileset>
   </ftp>
 
@@ -551,11 +551,11 @@ user. The listing is in whatever format the FTP server normally lists files.

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"/>
+  <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 @@ -572,14 +572,14 @@ Also, if you don't have permission to remove a directory, a BuildException is thrown.

-  <ftp action="rmdir"
-       server="ftp.apache.org"
-       userid="anonymous"
-       password="me@myorg.com" 
-       remotedir="/somedir" >
+  <ftp action="rmdir"
+       server="ftp.apache.org"
+       userid="anonymous"
+       password="me@myorg.com"
+       remotedir="/somedir" >
     <fileset>
-      <include name="dira"/>
-      <include name="dirb/**"/>
+      <include name="dira"/>
+      <include name="dirb/**"/>
     </fileset>
   </ftp>
 
@@ -594,20 +594,20 @@ Obviously all the files in the tree must have been already deleted.

As an example suppose you want to delete everything contained into /somedir, so invoke first the <ftp> task with -action="delete", then with -action="rmdir" specifying in both cases -remotedir="/somedir" and +action="delete", then with +action="rmdir" specifying in both cases +remotedir="/somedir" and

     <fileset>
-        <include name="**"/>
+        <include name="**"/>
     </fileset>
 
The directory specified in the remotedir parameter is never selected for remove, so if you need to remove it, specify its parent in remotedir parameter and include it in the -<fileset> pattern, like "somedir/**". +<fileset> pattern, like "somedir/**".


Copyright © 2000-2005 The Apache Software Foundation. All rights