Package org.gradle.api.tasks.bundling
Klasse AbstractArchiveTask
java.lang.Object
org.gradle.api.internal.AbstractTask
org.gradle.api.DefaultTask
org.gradle.api.internal.ConventionTask
org.gradle.api.tasks.AbstractCopyTask
org.gradle.api.tasks.bundling.AbstractArchiveTask
- Alle implementierten Schnittstellen:
Comparable<Task>,ContentFilterable,CopyProcessingSpec,CopySourceSpec,CopySpec,org.gradle.api.internal.DynamicObjectAware,org.gradle.api.internal.file.copy.CopySpecSource,org.gradle.api.internal.IConventionAware,org.gradle.api.internal.TaskInternal,Named,ExtensionAware,Task,PatternFilterable,Configurable<Task>
@DisableCachingByDefault(because="Abstract super-class, not to be instantiated directly")
public abstract class AbstractArchiveTask
extends AbstractCopyTask
AbstractArchiveTask is the base class for all archive tasks.-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.gradle.api.Task
Task.Namer -
Feldübersicht
Von Schnittstelle geerbte Felder org.gradle.api.Task
TASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected org.gradle.api.internal.file.copy.CopyActionExecuterReturns the appendix part of the archive name, if any.Returns the base name of the archive.Returns the classifier part of the archive name, if any.Returns the extension part of the archive name.TheRegularFilewhere the archive is constructed.Returns the archive name.Veraltet.Returns the version part of the archive name.The directory where the archive will be placed.Specifies the destination directory *inside* the archive for the files.Creates and configures a childCopySpecwith a destination directory *inside* the archive for the files.Creates and configures a childCopySpecwith a destination directory *inside* the archive for the files.booleanSpecifies whether file timestamps should be preserved in the archive.booleanSpecifies whether to enforce a reproducible file order when reading files from directories.voidsetPreserveFileTimestamps(boolean preserveFileTimestamps) Specifies whether file timestamps should be preserved in the archive.voidsetReproducibleFileOrder(boolean reproducibleFileOrder) Specifies whether to enforce a reproducible file order when reading files from directories.Von Klasse geerbte Methoden org.gradle.api.tasks.AbstractCopyTask
copy, createCopyAction, createRootSpec, dirPermissions, eachFile, eachFile, exclude, exclude, exclude, exclude, expand, expand, filePermissions, filesMatching, filesMatching, filesNotMatching, filesNotMatching, filter, filter, filter, filter, from, from, from, getDirectoryFileTreeFactory, getDirMode, getDirPermissions, getDocumentationRegistry, getDuplicatesStrategy, getExcludes, getFileLookup, getFileMode, getFilePermissions, getFileResolver, getFileSystem, getFilteringCharset, getIncludeEmptyDirs, getIncludes, getInstantiator, getMainSpec, getObjectFactory, getPropertyFactory, getRootSpec, getSource, include, include, include, include, isCaseSensitive, rename, rename, rename, rename, setCaseSensitive, setDirMode, setDuplicatesStrategy, setExcludes, setFileMode, setFilteringCharset, setIncludeEmptyDirs, setIncludes, withVon Klasse geerbte Methoden org.gradle.api.internal.ConventionTask
conventionMapping, conventionMapping, getConventionMappingVon Klasse geerbte Methoden org.gradle.api.DefaultTask
compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, onlyIf, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesServiceVon Klasse geerbte Methoden org.gradle.api.internal.AbstractTask
acceptServiceReferences, appendParallelSafeAction, doNotTrackState, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getLifecycleDependencies, getOnlyIf, getReasonNotToTrackState, getReasonTaskIsIncompatibleWithConfigurationCache, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isCompatibleWithConfigurationCache, isEnabled, isHasCustomActions, notCompatibleWithConfigurationCache, prependParallelSafeAction, setImpliesSubProjectsVon Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden org.gradle.api.Task
doNotTrackState, getConvention, notCompatibleWithConfigurationCache
-
Konstruktordetails
-
AbstractArchiveTask
public AbstractArchiveTask()
-
-
Methodendetails
-
getArchiveFileName
Returns the archive name. If the name has not been explicitly set, the pattern for the name is:[archiveBaseName]-[archiveAppendix]-[archiveVersion]-[archiveClassifier].[archiveExtension]- Gibt zurück:
- the archive name.
- Seit:
- 5.1
-
getArchiveFile
TheRegularFilewhere the archive is constructed. The path is simply thedestinationDirectoryplus thearchiveFileName.- Gibt zurück:
- a
RegularFileobject with the path to the archive - Seit:
- 5.1
-
getDestinationDirectory
The directory where the archive will be placed.- Seit:
- 5.1
-
getArchivePath
Veraltet.UsegetArchiveFile()The path where the archive is constructed. The path is simply thedestinationDirectoryplus thearchiveFileName.- Gibt zurück:
- a File object with the path to the archive
-
getArchiveBaseName
Returns the base name of the archive.- Gibt zurück:
- the base name. Internal property may be null.
- Seit:
- 5.1
-
getArchiveAppendix
Returns the appendix part of the archive name, if any.- Gibt zurück:
- the appendix. May be null
- Seit:
- 5.1
-
getArchiveVersion
Returns the version part of the archive name.- Gibt zurück:
- the version. Internal property may be null.
- Seit:
- 5.1
-
getArchiveExtension
Returns the extension part of the archive name.- Seit:
- 5.1
-
getArchiveClassifier
Returns the classifier part of the archive name, if any.- Gibt zurück:
- The classifier. Internal property may be null.
- Seit:
- 5.1
-
into
Specifies the destination directory *inside* the archive for the files. The destination is evaluated as perProject.file(Object). Don't mix it up withgetDestinationDirectory()which specifies the output directory for the archive.- Angegeben von:
intoin SchnittstelleCopyProcessingSpec- Angegeben von:
intoin SchnittstelleCopySpec- Setzt außer Kraft:
intoin KlasseAbstractCopyTask- Parameter:
destPath- destination directory *inside* the archive for the files- Gibt zurück:
- this
-
into
Creates and configures a childCopySpecwith a destination directory *inside* the archive for the files. The destination is evaluated as perProject.file(Object). Don't mix it up withgetDestinationDirectory()which specifies the output directory for the archive.- Angegeben von:
intoin SchnittstelleCopySpec- Setzt außer Kraft:
intoin KlasseAbstractCopyTask- Parameter:
destPath- destination directory *inside* the archive for the filesconfigureClosure- The closure to use to configure the childCopySpec.- Gibt zurück:
- this
-
into
Creates and configures a childCopySpecwith a destination directory *inside* the archive for the files. The destination is evaluated as perProject.file(Object). Don't mix it up withgetDestinationDirectory()which specifies the output directory for the archive.- Angegeben von:
intoin SchnittstelleCopySpec- Setzt außer Kraft:
intoin KlasseAbstractCopyTask- Parameter:
destPath- destination directory *inside* the archive for the filescopySpec- The closure to use to configure the childCopySpec.- Gibt zurück:
- this
-
isPreserveFileTimestamps
Specifies whether file timestamps should be preserved in the archive.If
falsethis ensures that archive entries have the same time for builds between different machines, Java versions and operating systems.- Gibt zurück:
trueif file timestamps should be preserved for archive entries- Seit:
- 3.4
-
setPreserveFileTimestamps
public void setPreserveFileTimestamps(boolean preserveFileTimestamps) Specifies whether file timestamps should be preserved in the archive.If
falsethis ensures that archive entries have the same time for builds between different machines, Java versions and operating systems.- Parameter:
preserveFileTimestamps-trueif file timestamps should be preserved for archive entries- Seit:
- 3.4
-
isReproducibleFileOrder
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.
- Gibt zurück:
trueif the files should read from disk in a reproducible order.- Seit:
- 3.4
-
setReproducibleFileOrder
public void setReproducibleFileOrder(boolean reproducibleFileOrder) 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.
- Parameter:
reproducibleFileOrder-trueif the files should read from disk in a reproducible order.- Seit:
- 3.4
-
createCopyActionExecuter
protected org.gradle.api.internal.file.copy.CopyActionExecuter createCopyActionExecuter()- Setzt außer Kraft:
createCopyActionExecuterin KlasseAbstractCopyTask
-
getArchiveFile()