Package gmbh.pagina.tools.gradle.mac_app
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
ConstructorsConstructorDescriptionCreates the task and wires default values from the built-in native stub preset. -
Method Summary
Modifier and TypeMethodDescriptionGets 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.DirectoryPropertyReturns 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> getUnzip()Returns the unzip configuration property.getUrl()Gets the URL to download the stub from.booleanisUnzip()Gets whether the downloaded artifact should be unzipped.voidsetExecutableName(String executableName) Sets the executable name used for the final stub file.voidSets the output directory.voidSets the output directory from a path string.voidsetSource(JavaApplicationStubSource source) Updates URL, unzip mode, and executable name from a combined source descriptor.voidsetUnzip(boolean unzip) Sets whether the downloaded file should be unzipped.voidSets the URL to download the stub from.voidPerform 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, usesServiceMethods 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, setImpliesSubProjectsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
Returns the configured source URL property.- Returns:
- source URL property
-
getUrl
Gets the URL to download the stub from.- Returns:
- the source URL
-
setUrl
Sets the URL to download the stub from.- Parameters:
url- the source URL to set
-
getUnzip
Returns the unzip configuration property.- Returns:
- unzip property
-
getStubExecutableName
Returns the executable-name configuration property.- Returns:
- executable-name property
-
getExecutableName
Gets the executable name used for the final stub file.- Returns:
- executable file name
-
setExecutableName
Sets the executable name used for the final stub file.- Parameters:
executableName- executable file name
-
getSource
Gets the combined source descriptor used by task DSL assignment.- Returns:
- combined Java-application-stub source descriptor
-
setSource
Updates URL, unzip mode, and executable name from a combined source descriptor.- Parameters:
source- source descriptor
-
getUniversalJavaApplicationStubShell
Gets the preset source for universalJavaApplicationStub shell script.- Returns:
- shell-script preset source
-
getUniversalJavaApplicationStubPrecompiled
Gets the preset source for universalJavaApplicationStub precompiled binary.- Returns:
- precompiled preset source
-
getNativeJavaApplicationStubv1
Gets the preset source for NativeJavaApplicationStub v1.- Returns:
- native v1 preset source
-
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
Gets the output directory as a file.- Returns:
- output directory
-
setOutdir
Sets the output directory from a path string.- Parameters:
outdir- output directory path
-
setOutdir
Sets the output directory.- Parameters:
outdir- output directory
-
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.
-