Class Tar

java.lang.Object
org.gradle.api.internal.AbstractTask
org.gradle.api.DefaultTask
org.gradle.api.internal.ConventionTask
All Implemented Interfaces:
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="Not worth caching") public abstract class Tar extends AbstractArchiveTask
Assembles a TAR archive.
  • Constructor Details

    • Tar

      public Tar()
  • Method Details

    • createCopyAction

      protected org.gradle.api.internal.file.copy.CopyAction createCopyAction()
      Specified by:
      createCopyAction in class AbstractCopyTask
    • getCompression

      @Input public Compression getCompression()
      Returns the compression that is used for this archive.
      Returns:
      The compression. Never returns null.
    • setCompression

      public void setCompression(Compression compression)
      Configures the compressor based on passed in compression.
      Parameters:
      compression - The compression. Should not be null.