public interface ArchiveOperations
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.
| Modifier and Type | Method | Description |
|---|---|---|
ReadableResource |
bzip2(java.lang.Object path) |
Creates resource that points to a bzip2 compressed file at the given path.
|
ReadableResource |
gzip(java.lang.Object path) |
Creates resource that points to a gzip compressed file at the given path.
|
FileTree |
tarTree(java.lang.Object tarPath) |
Creates a read-only
FileTree which contains the contents of the given TAR file, as defined by Project.tarTree(Object). |
FileTree |
zipTree(java.lang.Object zipPath) |
Creates a read-only
FileTree which contains the contents of the given ZIP file, as defined by Project.zipTree(Object). |
ReadableResource gzip(java.lang.Object path)
Project.file(Object).path - The path evaluated as per Project.file(Object).ReadableResource bzip2(java.lang.Object path)
Project.file(Object).path - The path evaluated as per Project.file(Object).FileTree zipTree(java.lang.Object zipPath)
Creates a read-only FileTree which contains the contents of the given ZIP file, as defined by Project.zipTree(Object).
zipPath - The ZIP file. Evaluated as per Project.file(Object).FileTree tarTree(java.lang.Object tarPath)
Creates a read-only FileTree which contains the contents of the given TAR file, as defined by Project.tarTree(Object).
tarPath - The TAR file. Evaluated as per Project.file(Object).