Class MacAppArchive

java.lang.Object
org.gradle.api.internal.AbstractTask
org.gradle.api.DefaultTask
gmbh.pagina.tools.gradle.mac_app.MacAppArchive
All Implemented Interfaces:
Comparable<org.gradle.api.Task>, org.gradle.api.internal.DynamicObjectAware, org.gradle.api.internal.TaskInternal, org.gradle.api.plugins.ExtensionAware, org.gradle.api.Task, org.gradle.util.Configurable<org.gradle.api.Task>

public class MacAppArchive extends org.gradle.api.DefaultTask
Create a tar.gz archive for a generated mac app bundle.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.gradle.api.Task

    org.gradle.api.Task.Namer
  • Field Summary

    Fields inherited from interface org.gradle.api.Task

    TASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates the task with default group, description, and output directory convention.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the app name.
    org.gradle.api.provider.Property<String>
    Returns the app name property.
    Gets the app bundle directory that will be archived.
    Gets the generated tar.gz archive file.
    Gets the output directory.
    org.gradle.api.file.DirectoryProperty
    Returns the output directory property.
    org.gradle.api.file.DirectoryProperty
    Returns the source directory property.
    void
    setAppName(String appName)
    Sets the app name.
    void
    setOutdir(File outdir)
    Sets the output directory.
    void
    setOutdir(String outdir)
    Sets the output directory as a string.
    void
    Creates the tar.gz archive for the generated unsigned app bundle.

    Methods inherited from class 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, usesService

    Methods inherited from class 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, setImpliesSubProjects

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.gradle.api.Task

    doNotTrackState, getConvention, notCompatibleWithConfigurationCache
  • Constructor Details

    • MacAppArchive

      public MacAppArchive()
      Creates the task with default group, description, and output directory convention.
  • Method Details

    • getSourceDirectoryProperty

      @Internal public org.gradle.api.file.DirectoryProperty getSourceDirectoryProperty()
      Returns the source directory property.
      Returns:
      source directory property
    • getAppName

      @Input public String getAppName()
      Gets the app name.
      Returns:
      the app name
    • setAppName

      public void setAppName(String appName)
      Sets the app name.
      Parameters:
      appName - the app name to set
    • getAppNameProperty

      @Internal public org.gradle.api.provider.Property<String> getAppNameProperty()
      Returns the app name property.
      Returns:
      app name property
    • getOutdirProperty

      @Internal public org.gradle.api.file.DirectoryProperty getOutdirProperty()
      Returns the output directory property.
      Returns:
      output directory property
    • getOutdir

      @Internal public File getOutdir()
      Gets the output directory.
      Returns:
      the output directory
    • setOutdir

      public void setOutdir(String outdir)
      Sets the output directory as a string.
      Parameters:
      outdir - the output directory path
    • setOutdir

      public void setOutdir(File outdir)
      Sets the output directory.
      Parameters:
      outdir - the output directory
    • getMacApp

      @InputDirectory @PathSensitive(RELATIVE) public File getMacApp()
      Gets the app bundle directory that will be archived.
      Returns:
      app bundle directory
    • getMacAppTarGz

      @OutputFile public File getMacAppTarGz()
      Gets the generated tar.gz archive file.
      Returns:
      archive file path
    • taskAction

      public void taskAction()
      Creates the tar.gz archive for the generated unsigned app bundle.