Package org.gradle.api.file
Schnittstelle ArchiveOperations
@ServiceScope({org.gradle.internal.service.scopes.Scope.Build.class,org.gradle.internal.service.scopes.Scope.Project.class})
public interface 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.
- Seit:
- 6.6
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungCreates resource that points to a bzip2 compressed file at the given path.Creates resource that points to a gzip compressed file at the given path.Creates a read-onlyFileTreewhich contains the contents of the given TAR file, as defined byProject.tarTree(Object).Creates a read-onlyFileTreewhich contains the contents of the given ZIP file, as defined byProject.zipTree(Object).
-
Methodendetails
-
gzip
Creates resource that points to a gzip compressed file at the given path. The path is evaluated as perProject.file(Object).- Parameter:
path- The path evaluated as perProject.file(Object).- Seit:
- 7.0
-
bzip2
Creates resource that points to a bzip2 compressed file at the given path. The path is evaluated as perProject.file(Object).- Parameter:
path- The path evaluated as perProject.file(Object).- Seit:
- 7.0
-
zipTree
Creates a read-only
FileTreewhich contains the contents of the given ZIP file, as defined byProject.zipTree(Object).- Parameter:
zipPath- The ZIP file. Evaluated as perProject.file(Object).- Gibt zurück:
- the file tree. Never returns null.
-
tarTree
Creates a read-only
FileTreewhich contains the contents of the given TAR file, as defined byProject.tarTree(Object).- Parameter:
tarPath- The TAR file. Evaluated as perProject.file(Object).- Gibt zurück:
- the file tree. Never returns null.
-