For each of the supported compression formats there is a correspondig resource that wraps around another resource providing compression or decompression on the fly. A single element resource collection must be specified as a nested element.
This is a compressed resource using the BZIP2 compression.
<cmp:tarentry xmlns:cmp="antlib:org.apache.ant.compress" name="some-file.txt"> <cmp:bzip2resource> <file file="some-archive.tar.bz2"/> </cmp:bzip2resource> </cmp:tarentry>
Represents the entry named some-file.txt in archive
some-archive.tar.bz2 where the bzip2resource
provides
the decompression of the archive.
This is a compressed resource using the GZIP compression.
<cmp:tarentry xmlns:cmp="antlib:org.apache.ant.compress" name="some-file.txt"> <cmp:gzipresource> <file file="some-archive.tar.gz"/> </cmp:gzipresource> </cmp:tarentry>
Represents the entry named some-file.txt in archive
some-archive.tar.gz where the gzipresource
provides
the decompression of the archive.