|
|
@@ -136,6 +136,20 @@ attributes |
|
|
|
are prefixed with that path in the archive.</td> |
|
|
|
<td align="center" valign="top">No</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td valign="top">fullpath</td> |
|
|
|
<td valign="top">If the fullpath attribute is set, the file in the fileset |
|
|
|
is written with that path in the archive. The prefix attribute, if specified, is |
|
|
|
ignored. It is an error to have more than one file specified in |
|
|
|
such a fileset.</td> |
|
|
|
<td align="center" valign="top">No</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td valign="top">preserveLeadingSlashes</td> |
|
|
|
<td valign="top">Indicates whether leading `/'s should |
|
|
|
be preserved in the file names. Default is <code>false</code>.</td> |
|
|
|
<td align="center" valign="top">No</td> |
|
|
|
</tr> |
|
|
|
</table> |
|
|
|
|
|
|
|
<h3>Examples</h3> |
|
|
@@ -152,6 +166,30 @@ it.</p> |
|
|
|
in the <code>${dist}</code> directory. Files in the directory <code>mydocs</code>, |
|
|
|
or files with the name <code>todo.html</code> are excluded.</p> |
|
|
|
|
|
|
|
<pre> |
|
|
|
<tar destfile="${basedir}/docs.tar"> |
|
|
|
<tarfileset dir="${dir.src}/docs" |
|
|
|
fullpath="/usr/doc/ant/README" |
|
|
|
preserveLeadingSlashes="true"> |
|
|
|
<include name="readme.txt"/> |
|
|
|
</tarfileset> |
|
|
|
<tarfileset dir="${dir.src}/docs" |
|
|
|
prefix="/usr/doc/ant" |
|
|
|
preserveLeadingSlashes="true"> |
|
|
|
<include name="*.html"/> |
|
|
|
</tarfileset> |
|
|
|
</tar></pre> |
|
|
|
|
|
|
|
<p> |
|
|
|
Writes the file <code>docs/readme.txt</code> as |
|
|
|
<code>/usr/doc/ant/README</code> into the archive. All |
|
|
|
<code>*.html</code> files in the <code>docs</code> directory are |
|
|
|
prefixed by <code>/usr/doc/ant</code>, so for example |
|
|
|
<code>docs/index.html</code> is written as |
|
|
|
<code>/usr/doc/ant/index.html</code> to the archive. |
|
|
|
</p> |
|
|
|
|
|
|
|
|
|
|
|
<pre><tar longfile="gnu" |
|
|
|
destfile="${dist.base}/${dist.name}-src.tar" > |
|
|
|
<tarfileset dir="${dist.name}/.." mode="755" username="ant" group="ant"> |
|
|
|