Browse Source

Add warnings about the interaction of filters and binary files

PR:	16780


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273990 13f79535-47bb-0310-9956-ffa450edef68
master
Conor MacNeill 22 years ago
parent
commit
c665fdcd49
2 changed files with 17 additions and 0 deletions
  1. +10
    -0
      docs/manual/CoreTasks/copy.html
  2. +7
    -0
      docs/manual/CoreTypes/filterset.html

+ 10
- 0
docs/manual/CoreTasks/copy.html View File

@@ -13,10 +13,20 @@
only copied if the source file is newer than the destination file,
or when the destination file does not exist. However, you can explicitly
overwrite files with the <code>overwrite</code> attribute.</p>

<p><a href="../CoreTypes/fileset.html">FileSet</a>s are used to select a
set of files to copy.
To use a <code>&lt;fileset&gt;</code>, the <code>todir</code> attribute
must be set.</p>

<p>
<strong>Note: </strong>If you employ filters in your copy operation, you should
limit the copy to text files. Binary files will be corrupted by the copy operation.
This applies whether the filters are implicitly defined by the
<a href="filter.html">filter</a> task or explicitly provided to the copy
operation as <a href="../CoreTypes/filterset.html">filtersets</a>
</p>
<h3>Parameters</h3>
<table border="1" cellpadding="2" cellspacing="0">
<tr>


+ 7
- 0
docs/manual/CoreTypes/filterset.html View File

@@ -28,6 +28,13 @@ filters.</p>
<p>Filtersets are used for doing
replacements in tasks such as <code>&lt;copy&gt;</code>, etc.</p>

<p>
<strong>Note: </strong>When a filterset is used in an operation, the files are
processed in text mode and the filters applied line by line. This means that
the copy operations will typically corrupt binary files. When applying filters
you should ensure that the set of files being filtered are all text files.
</p>

<H2>Filterset</H2>

<TABLE cellSpacing=0 cellPadding=2 border=1>


Loading…
Cancel
Save