| com.google.gwt.ant.taskdefs.TarCat
TarCat | public class TarCat extends Tar (Code) | | An extension to the Ant Tar task that supports slurping in other tar files
without loss of information (such as permissions or symlinks). It behaves in
all respects like the basic Tar task, but adds the nested element
<includetar> which declares another tar file whose contents
should be added to the file being created.
In addition to preserving permissions and symlinks no matter what the host
operating system is, there are performance advantages to this approach.
Bypassing the file system cuts the disk activity to 50% or less. The
intermediate files normally generated require data the size of the tar itself
to be both written and read, not to mention the overhead of creating the
individual files, which will generally have to be deleted later. Furthurmore,
since the source and target are often zipped, the savings can be well over
50%.
Example use:
|
Inner Class :public static class IncludeTar | |
Inner Class :final public static class UntarCompressionMethod extends EnumeratedAttribute | |
Constructor Summary | |
public | TarCat() Creates a TarExt task instance. |
Method Summary | |
public IncludeTar | createIncludeTar() Add a new tar to include in this tar operation. | protected void | tarFile(File file, TarOutputStream tOut, String vPath, TarFileSet tarFileSet) |
includeTarWrappers | Vector includeTarWrappers(Code) | | A set of tarfileset wrappers mapped to includeTars.
|
includeTars | Vector includeTars(Code) | | The set of tars to include in this tar operation.
|
TarCat | public TarCat()(Code) | | Creates a TarExt task instance.
|
createIncludeTar | public IncludeTar createIncludeTar()(Code) | | Add a new tar to include in this tar operation.
|
|
|