You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bo...@apache.org on 2015/11/08 06:16:39 UTC
ant git commit: scp task: update docs and add new ResourceCollection
usage
Repository: ant
Updated Branches:
refs/heads/master 97e463ea9 -> 440b60148
scp task: update docs and add new ResourceCollection usage
Project: http://git-wip-us.apache.org/repos/asf/ant/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant/commit/440b6014
Tree: http://git-wip-us.apache.org/repos/asf/ant/tree/440b6014
Diff: http://git-wip-us.apache.org/repos/asf/ant/diff/440b6014
Branch: refs/heads/master
Commit: 440b60148763711ef51629ca8c63d6117492d56a
Parents: 97e463e
Author: Reinhard Pointner <re...@gmail.com>
Authored: Sun Nov 8 12:00:37 2015 +0800
Committer: Stefan Bodewig <bo...@apache.org>
Committed: Sun Nov 8 06:16:16 2015 +0100
----------------------------------------------------------------------
manual/Tasks/scp.html | 22 ++++++++++++++++------
1 file changed, 16 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ant/blob/440b6014/manual/Tasks/scp.html
----------------------------------------------------------------------
diff --git a/manual/Tasks/scp.html b/manual/Tasks/scp.html
index e8d66d0..6d06bd2 100644
--- a/manual/Tasks/scp.html
+++ b/manual/Tasks/scp.html
@@ -203,10 +203,11 @@ for more information. This task has been tested with jsch-0.1.2 and later.</p>
</table>
<h3>Parameters specified as nested elements</h3>
-<h4>fileset</h4>
- <p><a href="../Types/fileset.html">FileSet</a>s are used to select
-sets of files to copy.
- To use a fileset, the <code>todir</code> attribute must be set.</p>
+<h4>fileset or resource collections</h4>
+ <p><a href="../Types/fileset.html">FileSet</a>s or <a href="../Types/resources.html#collection">Resource Collection</a>s are used to select
+ groups of files to copy. To use a fileset or a resource collection, the <code>todir</code> attribute must be set.</p>
+
+Prior to Ant 1.9.7 only <fileset> has been supported as a nested element.
<h3>Examples</h3>
<p><b>Copy a single local file to a remote machine</b></p>
@@ -253,9 +254,18 @@ authentication.</b></p>
<include name="**/*.java"/>
</fileset>
</scp>
-
+</pre>
+<p><b>Copy a set of files to a remote directory in reverse last-modified order</b></p>
+<pre>
<scp todir="user:password@somehost:/home/chuck">
- <fileset dir="src_dir" excludes="**/*.java"/>
+ <sort>
+ <reverse>
+ <date />
+ </reverse>
+ <fileset dir="src_dir">
+ <include name="**/*" />
+ </fileset>
+ </sort>
</scp>
</pre>