diff --git a/docs/manual/CoreTasks/tar.html b/docs/manual/CoreTasks/tar.html index e8359f21a..d846ec01e 100644 --- a/docs/manual/CoreTasks/tar.html +++ b/docs/manual/CoreTasks/tar.html @@ -136,6 +136,20 @@ attributes are prefixed with that path in the archive.
false.${dist} directory. Files in the directory mydocs,
or files with the name todo.html are excluded.
+
+<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>
+
+
+ Writes the file docs/readme.txt as
+ /usr/doc/ant/README into the archive. All
+ *.html files in the docs directory are
+ prefixed by /usr/doc/ant, so for example
+ docs/index.html is written as
+ /usr/doc/ant/index.html to the archive.
+
<tar longfile="gnu"
destfile="${dist.base}/${dist.name}-src.tar" >
<tarfileset dir="${dist.name}/.." mode="755" username="ant" group="ant">