Class JASDownloader

java.lang.Object
org.gradle.api.internal.AbstractTask
org.gradle.api.DefaultTask
gmbh.pagina.tools.gradle.mac_app.JASDownloader
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>

@CacheableTask public class JASDownloader extends org.gradle.api.DefaultTask
Download the configured Java application stub.
  • 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 and wires default values from the built-in native stub preset.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the executable name used for the final stub file.
    Gets the preset source for NativeJavaApplicationStub v1.
    Gets the preset source for NativeJavaApplicationStub v1.1.
    org.gradle.api.file.DirectoryProperty
    Returns the output directory property.
    Gets the output directory as a file.
    Gets the combined source descriptor used by task DSL assignment.
    org.gradle.api.provider.Property<String>
    Returns the configured source URL property.
    org.gradle.api.provider.Property<String>
    Returns the executable-name configuration property.
    Gets the target Java-application-stub file produced by this task.
    Gets the preset source for universalJavaApplicationStub precompiled binary.
    Gets the preset source for universalJavaApplicationStub shell script.
    org.gradle.api.provider.Property<Boolean>
    Returns the unzip configuration property.
    Gets the URL to download the stub from.
    boolean
    Gets whether the downloaded artifact should be unzipped.
    void
    setExecutableName(String executableName)
    Sets the executable name used for the final stub file.
    void
    setOutdir(File outdir)
    Sets the output directory.
    void
    setOutdir(String outdir)
    Sets the output directory from a path string.
    void
    Updates URL, unzip mode, and executable name from a combined source descriptor.
    void
    setUnzip(boolean unzip)
    Sets whether the downloaded file should be unzipped.
    void
    Sets the URL to download the stub from.
    void
    Perform the plugin action.

    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

    • JASDownloader

      public JASDownloader()
      Creates the task and wires default values from the built-in native stub preset.
  • Method Details

    • getSourceUrl

      @Input public org.gradle.api.provider.Property<String> getSourceUrl()
      Returns the configured source URL property.
      Returns:
      source URL property
    • getUrl

      @Internal public String getUrl()
      Gets the URL to download the stub from.
      Returns:
      the source URL
    • setUrl

      public void setUrl(String url)
      Sets the URL to download the stub from.
      Parameters:
      url - the source URL to set
    • getUnzip

      @Input public org.gradle.api.provider.Property<Boolean> getUnzip()
      Returns the unzip configuration property.
      Returns:
      unzip property
    • getStubExecutableName

      @Input public org.gradle.api.provider.Property<String> getStubExecutableName()
      Returns the executable-name configuration property.
      Returns:
      executable-name property
    • getExecutableName

      @Internal public String getExecutableName()
      Gets the executable name used for the final stub file.
      Returns:
      executable file name
    • setExecutableName

      public void setExecutableName(String executableName)
      Sets the executable name used for the final stub file.
      Parameters:
      executableName - executable file name
    • getSource

      @Internal public JavaApplicationStubSource getSource()
      Gets the combined source descriptor used by task DSL assignment.
      Returns:
      combined Java-application-stub source descriptor
    • setSource

      public void setSource(JavaApplicationStubSource source)
      Updates URL, unzip mode, and executable name from a combined source descriptor.
      Parameters:
      source - source descriptor
    • getUniversalJavaApplicationStubShell

      @Internal public JavaApplicationStubSource getUniversalJavaApplicationStubShell()
      Gets the preset source for universalJavaApplicationStub shell script.
      Returns:
      shell-script preset source
    • getUniversalJavaApplicationStubPrecompiled

      @Internal public JavaApplicationStubSource getUniversalJavaApplicationStubPrecompiled()
      Gets the preset source for universalJavaApplicationStub precompiled binary.
      Returns:
      precompiled preset source
    • getNativeJavaApplicationStubv1

      @Internal public JavaApplicationStubSource getNativeJavaApplicationStubv1()
      Gets the preset source for NativeJavaApplicationStub v1.
      Returns:
      native v1 preset source
    • getNativeJavaApplicationStubv1_1

      @Internal public JavaApplicationStubSource getNativeJavaApplicationStubv1_1()
      Gets the preset source for NativeJavaApplicationStub v1.1.
      Returns:
      native v1.1 preset source
    • isUnzip

      @Internal public boolean isUnzip()
      Gets whether the downloaded artifact should be unzipped.
      Returns:
      true when unzip mode is enabled
    • setUnzip

      public void setUnzip(boolean unzip)
      Sets whether the downloaded file should be unzipped.
      Parameters:
      unzip - true to unzip, false otherwise
    • getOutdir

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

      @Internal public File getOutdirFile()
      Gets the output directory as a file.
      Returns:
      output directory
    • setOutdir

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

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

      @OutputFile public File getTargetFile()
      Gets the target Java-application-stub file produced by this task.
      Returns:
      target stub executable file
    • taskAction

      public void taskAction()
      Perform the plugin action.