Return-Path: Delivered-To: apmail-jakarta-ant-dev-archive@apache.org Received: (qmail 40414 invoked from network); 20 May 2002 12:34:56 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 20 May 2002 12:34:56 -0000 Received: (qmail 29939 invoked by uid 97); 20 May 2002 12:34:53 -0000 Delivered-To: qmlist-jakarta-archive-ant-dev@jakarta.apache.org Received: (qmail 29923 invoked by uid 97); 20 May 2002 12:34:52 -0000 Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 29911 invoked by uid 97); 20 May 2002 12:34:52 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Date: 20 May 2002 12:34:47 -0000 Message-ID: <20020520123447.77354.qmail@icarus.apache.org> From: umagesh@apache.org To: jakarta-ant-cvs@apache.org Subject: cvs commit: jakarta-ant/docs/manual/CoreTasks move.html copy.html X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N umagesh 02/05/20 05:34:47 Modified: docs/manual/CoreTasks Tag: ANT_15_BRANCH move.html copy.html Log: Include cross-reference of fliterchain in and Reported by: Dominique Devienne Revision Changes Path No revision No revision 1.6.2.2 +6 -3 jakarta-ant/docs/manual/CoreTasks/move.html Index: move.html =================================================================== RCS file: /home/cvs/jakarta-ant/docs/manual/CoreTasks/move.html,v retrieving revision 1.6.2.1 retrieving revision 1.6.2.2 diff -u -r1.6.2.1 -r1.6.2.2 --- move.html 3 May 2002 09:40:28 -0000 1.6.2.1 +++ move.html 20 May 2002 12:34:47 -0000 1.6.2.2 @@ -26,13 +26,13 @@ file the file to move - One of file or + One of file or at least one nested fileset element tofile the file to move to - With the file attribute, + With the file attribute, either tofile or todir can be used. With nested filesets, if the fileset size is greater than 1 or if the only entry in the fileset is a directory or if the file attribute is already specified, only @@ -59,7 +59,7 @@ flatten ignore directory structure of source directory, copy all files into a single directory, specified by the todir - attribute (default is "false").Note that you can achieve the + attribute (default is "false").Note that you can achieve the same effect by using a flatten mapper No @@ -76,6 +76,9 @@ href="../CoreTypes/mapper.html">mapper element. The default mapper used by <copy> is the identity.

+

filterchain

+

The Move task supports nested +FilterChains.

Examples

Move a single file (rename a file)

  
  
  
  1.10.2.3  +14 -11    jakarta-ant/docs/manual/CoreTasks/copy.html
  
  Index: copy.html
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/docs/manual/CoreTasks/copy.html,v
  retrieving revision 1.10.2.2
  retrieving revision 1.10.2.3
  diff -u -r1.10.2.2 -r1.10.2.3
  --- copy.html	13 May 2002 16:00:23 -0000	1.10.2.2
  +++ copy.html	20 May 2002 12:34:47 -0000	1.10.2.3
  @@ -11,10 +11,10 @@
   

Description

Copies a file or FileSet to a new file or directory. By default, files are only copied if the source file is newer than the destination file, -or when the destination file does not exist. However, you can explicitly +or when the destination file does not exist. However, you can explicitly overwrite files with the overwrite attribute.

FileSets are used to select a -set of files to copy. +set of files to copy. To use a <fileset>, the todir attribute must be set.

Parameters

@@ -27,7 +27,7 @@ file The file to copy. - Yes, unless a nested + Yes, unless a nested <fileset> element is used. @@ -96,24 +96,27 @@

Parameters specified as nested elements

- +

fileset

FileSets are used to select -sets of files to copy. +sets of files to copy. To use a fileset, the todir attribute must be set.

- +

mapper

You can define filename transformations by using a nested mapper element. The default mapper used by <copy> is the identity mapper.

- +

filterset

FilterSets are used to replace -tokens in files that are copied. +tokens in files that are copied. To use a FilterSet, use the nested <filterset> element.

- - + +

filterchain

+

The Copy task supports nested +FilterChains.

+

Examples

Copy a single file

  @@ -167,7 +170,7 @@
   instead. This
   is caused by the lack of any means to query or set file permissions in the
   current Java runtimes. If you need a permission-preserving copy function,
  -use <exec executable="cp" ... > instead. 
  +use <exec executable="cp" ... > instead.
   

Windows Note: If you copy a file to a directory -- To unsubscribe, e-mail: For additional commands, e-mail: