ArchiveOperations

Operations on archives such as ZIP or TAR files.

An instance of this type can be injected into a task, plugin or other object by annotating a public constructor or property getter method with javax.inject.Inject.

Since

6.6

Functions

Link copied to clipboard
abstract fun bzip2(path: Any): ReadableResource
Creates resource that points to a bzip2 compressed file at the given path.
Link copied to clipboard
abstract fun gzip(path: Any): ReadableResource
Creates resource that points to a gzip compressed file at the given path.
Link copied to clipboard
abstract fun tarTree(tarPath: Any): FileTree
Creates a read-only FileTree which contains the contents of the given TAR file, as defined by tarTree.
Link copied to clipboard
abstract fun zipTree(zipPath: Any): FileTree
Creates a read-only FileTree which contains the contents of the given ZIP file, as defined by zipTree.