@@ -1,14 +1,13 @@
<html>
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<title>Ant User Manual </title>
<title>Concat </title>
</head>
<body>
<h2><a name="copy ">Concat</a></h2>
<h2><a name="Concat ">Concat</a></h2>
<h3>Description</h3>
@@ -41,10 +40,10 @@
<td valign="top">destfile</td>
<td valign="top">
The destination file for the concatenated stream.
If not specified the console will be used instead.
</td>
<td valign="top" align="center">
No, the console will be used as the destination for the
stream in the absence of this attribute.
No,
</td>
</tr>
@@ -61,7 +60,8 @@
<td valign="top">encoding</td>
<td valign="top">
Specifies the encoding for the input files. Please see <a
href="http://java.sun.com/products/jdk/1.2/docs/guide/internat/encoding.doc.html">http://java.sun.com/products/jdk/1.2/docs/guide/internat/encoding.doc.html</a>
href="http://java.sun.com/products/jdk/1.2/docs/guide/internat/encoding.doc.html">
http://java.sun.com/products/jdk/1.2/docs/guide/internat/encoding.doc.html</a>
for a list of possible values. Defaults to the platform's
default character encoding.
</td>
@@ -93,35 +93,39 @@
<h3>Examples</h3>
<p><b>Cat a string to a file:</b></p>
<p><b>Conc atenate a string to a file:</b></p>
<pre>
<cat tofile="README">Hello, World!</cat>
<conc at tofile="README">Hello, World!</con cat>
</pre>
<p><b>Cat a series of files to the console:</b></p>
<p><b>Conc atenate a series of files to the console:</b></p>
<pre>
<cat>
<conc at>
<fileset dir="messages" includes="*important*" />
</cat>
</conc at>
</pre>
<p><b>Cat a single file, appending if the destination file exists:</b></p>
<p><b>Conc atenate a single file, appending if the destination file exists:</b></p>
<pre>
<cat tofile="NOTES" append="true">
<conc at tofile="NOTES" append="true">
<filelist dir="notes" files="note.txt" />
</cat>
</conc at>
</pre>
<p><b>Cat a series of files, overwriting if the destination file exists:</b></p>
<p><b>Concatenate a series of files, overwriting if the
destination file exists:</b></p>
<pre>
<cat tofile="${docbook.dir}/all-sections.xml">
<filelist dir="${docbook.dir}/sections" files="introduction.xml,overview.xml" />
<fileset dir="${docbook.dir}" includes="sections/*.xml" excludes="introduction.xml,overview.xml" />
</cat>
<concat tofile="${docbook.dir}/all-sections.xml">
<filelist dir="${docbook.dir}/sections"
files="introduction.xml,overview.xml" />
<fileset dir="${docbook.dir}"
includes="sections/*.xml"
excludes="introduction.xml,overview.xml" />
</concat>
</pre>
<hr>