open class Tar : AbstractArchiveTask
Assembles a TAR archive.
Tar() |
open fun getCompression(): Compression
Returns the compression that is used for this archive. |
|
open fun setCompression(compression: Compression): Unit
Configures the compressor based on passed in compression. |
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 |