abstract class AbstractArchiveTask : AbstractCopyTask
AbstractArchiveTask
is the base class for all archive tasks.
AbstractArchiveTask()
|
open fun getAppendix(): String
Returns the appendix part of the archive name, if any. |
|
open fun getArchiveName(): String
Returns the archive name. If the name has not been explicitly set, the pattern for the name is: |
|
open fun getArchivePath(): File
The path where the archive is constructed. The path is simply the |
|
open fun getBaseName(): String
Returns the base name of the archive. |
|
open fun getClassifier(): String
Returns the classifier part of the archive name, if any. |
|
open fun getDestinationDir(): File
Returns the directory where the archive is generated into. |
|
open fun getExtension(): String
Returns the extension part of the archive name. |
|
open fun getVersion(): String
Returns the version part of the archive name, if any. |
|
open fun into(destPath: Any): AbstractArchiveTask
Specifies the destination directory *inside* the archive for the files. The destination is evaluated as per open fun into(destPath: Any, configureClosure: Closure<Any>): AbstractArchiveTask open fun into(destPath: Any, copySpec: Action<in CopySpec>): CopySpec
Creates and configures a child |
|
open fun isPreserveFileTimestamps(): Boolean
Specifies whether file timestamps should be preserved in the archive. If false this ensures that archive entries have the same time for builds between different machines, Java versions and operating systems. |
|
open fun isReproducibleFileOrder(): Boolean
Specifies whether to enforce a reproducible file order when reading files from directories. Gradle will then walk the directories on disk which are part of this archive in a reproducible order independent of file systems and operating systems. This helps Gradle reliably produce byte-for-byte reproducible archives. |
|
open fun setAppendix(appendix: String): Unit |
|
open fun setArchiveName(name: String): Unit
Sets the archive name. |
|
open fun setBaseName(baseName: String): Unit |
|
open fun setClassifier(classifier: String): Unit |
|
open fun setDestinationDir(destinationDir: File): Unit |
|
open fun setExtension(extension: String): Unit |
|
open fun setPreserveFileTimestamps(preserveFileTimestamps: Boolean): Unit
Specifies whether file timestamps should be preserved in the archive. If false this ensures that archive entries have the same time for builds between different machines, Java versions and operating systems. |
|
open fun setReproducibleFileOrder(reproducibleFileOrder: Boolean): Unit
Specifies whether to enforce a reproducible file order when reading files from directories. Gradle will then walk the directories on disk which are part of this archive in a reproducible order independent of file systems and operating systems. This helps Gradle reliably produce byte-for-byte reproducible archives. |
|
open fun setVersion(version: String): Unit |
open fun eachFile(action: Action<in FileCopyDetails>): AbstractCopyTask open fun eachFile(closure: Closure<Any>): AbstractCopyTask
{@inheritDoc} |
|
open fun exclude(vararg excludes: String): AbstractCopyTask open fun exclude(excludes: MutableIterable<String>): AbstractCopyTask open fun exclude(excludeSpec: Spec<FileTreeElement>): AbstractCopyTask open fun exclude(excludeSpec: Closure<Any>): AbstractCopyTask
{@inheritDoc} |
|
open fun expand(properties: MutableMap<String, *>): AbstractCopyTask
{@inheritDoc} |
|
open fun filesMatching(pattern: String, action: Action<in FileCopyDetails>): AbstractCopyTask open fun filesMatching(patterns: MutableIterable<String>, action: Action<in FileCopyDetails>): AbstractCopyTask
{@inheritDoc} |
|
open fun filesNotMatching(pattern: String, action: Action<in FileCopyDetails>): AbstractCopyTask open fun filesNotMatching(patterns: MutableIterable<String>, action: Action<in FileCopyDetails>): AbstractCopyTask
{@inheritDoc} |
|
open fun filter(properties: MutableMap<String, *>, filterType: Class<out FilterReader>): AbstractCopyTask open fun filter(filterType: Class<out FilterReader>): AbstractCopyTask open fun filter(closure: Closure<Any>): AbstractCopyTask open fun filter(transformer: Transformer<String, String>): AbstractCopyTask
{@inheritDoc} |
|
open fun from(vararg sourcePaths: Any): AbstractCopyTask open fun from(sourcePath: Any, c: Closure<Any>): AbstractCopyTask open fun from(sourcePath: Any, configureAction: Action<in CopySpec>): AbstractCopyTask
{@inheritDoc} |
|
open fun getDirMode(): Int
{@inheritDoc} |
|
open fun getDuplicatesStrategy(): DuplicatesStrategy
{@inheritDoc} |
|
open fun getExcludes(): MutableSet<String>
{@inheritDoc} |
|
open fun getFileMode(): Int
{@inheritDoc} |
|
open fun getFilteringCharset(): String
{@inheritDoc} |
|
open fun getIncludeEmptyDirs(): Boolean
{@inheritDoc} |
|
open fun getIncludes(): MutableSet<String>
{@inheritDoc} |
|
open fun getRootSpec(): CopySpecInternal |
|
open fun getSource(): FileCollection
Returns the source files for this task. |
|
open fun include(vararg includes: String): AbstractCopyTask open fun include(includes: MutableIterable<String>): AbstractCopyTask open fun include(includeSpec: Spec<FileTreeElement>): AbstractCopyTask open fun include(includeSpec: Closure<Any>): AbstractCopyTask
{@inheritDoc} |
|
open fun isCaseSensitive(): Boolean
{@inheritDoc} |
|
open fun rename(closure: Closure<Any>): AbstractCopyTask open fun rename(renamer: Transformer<String, String>): AbstractCopyTask open fun rename(sourceRegEx: String, replaceWith: String): AbstractCopyTask open fun rename(sourceRegEx: Pattern, replaceWith: String): AbstractCopyTask
{@inheritDoc} |
|
open fun setCaseSensitive(caseSensitive: Boolean): Unit
{@inheritDoc} |
|
open fun setDirMode(mode: Int): AbstractCopyTask
{@inheritDoc} |
|
open fun setDuplicatesStrategy(strategy: DuplicatesStrategy): Unit
{@inheritDoc} |
|
open fun setExcludes(excludes: MutableIterable<String>): AbstractCopyTask
{@inheritDoc} |
|
open fun setFileMode(mode: Int): AbstractCopyTask
{@inheritDoc} |
|
open fun setFilteringCharset(charset: String): Unit
{@inheritDoc} |
|
open fun setIncludeEmptyDirs(includeEmptyDirs: Boolean): Unit
{@inheritDoc} |
|
open fun setIncludes(includes: MutableIterable<String>): AbstractCopyTask
{@inheritDoc} |
|
open fun with(vararg sourceSpecs: CopySpec): CopySpec
{@inheritDoc} |
open class Tar : AbstractArchiveTask
Assembles a TAR archive. |
|
open class Zip : AbstractArchiveTask
Assembles a ZIP archive. The default is to compress the contents of the zip. |