You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Peter Donald <do...@mad.scientist.com> on 2000/08/08 16:13:23 UTC
Re: TArball
At 10:40 8/8/00 -0400, you wrote:
>
>
>can ant build a tarball??????
>
>thanks();
>rick
Straight from the documentation:
---
Examples
<tar tarfile="${dist}/manual.tar" basedir="htdocs/manual" />
<gzip zipfile="${dist}/manual.tar.gz" src="${dist}/manual.tar" />
tars all files in the htdocs/manual directory in a file called manual.tar
in the ${dist} directory, then applies the gzip task to compress it.
<tar tarfile="${dist}/manual.tar"
basedir="htdocs/manual"
excludes="mydocs/**, **/todo.html"
/>
tars all files in the htdocs/manual directory in a file called manual.tar
in the ${dist} directory. Files in the directory mydocs, or files with the
name todo.html are excluded.
Cheers,
Pete
*------------------------------------------------------*
| "Nearly all men can stand adversity, but if you want |
| to test a man's character, give him power." |
| -Abraham Lincoln |
*------------------------------------------------------*