Top Description Fields Constructors Methods
org.apache.tools.ant.taskdefs

public Class BZip2

extends Pack
Class Inheritance
Imports
java.io.BufferedOutputStream, .IOException, java.nio.file.Files, org.apache.tools.ant.BuildException, org.apache.tools.ant.util.FileUtils, org.apache.tools.bzip2.CBZip2OutputStream

Compresses a file with the BZIP2 algorithm. Normally used to compress non-compressed archives such as TAR files.
Since
Ant 1.5

Field Summary

Inherited from org.apache.tools.ant.taskdefs.Pack:
sourcezipFile

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected void
pack()

Implements abstract org.apache.tools.ant.taskdefs.Pack.pack.

Compress the zipFile.
protected boolean

Returns:

true if this task support non file resources.
supportsNonFileResources
()

Overrides org.apache.tools.ant.taskdefs.Pack.supportsNonFileResources.

Whether this task can deal with non-file resources.
Inherited from org.apache.tools.ant.taskdefs.Pack:
addConfiguredexecutegetSrcResourcesetDestfilesetSrcsetSrcResourcesetZipfilezipFilezipResource

Constructor Detail

BZip2back to summary
public BZip2()

Method Detail

packback to summary
protected void pack()

Implements abstract org.apache.tools.ant.taskdefs.Pack.pack.

Compress the zipFile.

supportsNonFileResourcesback to summary
protected boolean supportsNonFileResources()

Overrides org.apache.tools.ant.taskdefs.Pack.supportsNonFileResources.

Whether this task can deal with non-file resources.

This implementation returns true only if this task is <bzip2>. Any subclass of this class that also wants to support non-file resources needs to override this method. We need to do so for backwards compatibility reasons since we can't expect subclasses to support resources.

Returns:boolean

true if this task support non file resources.

Since
Ant 1.7