Package gmbh.pagina.tools.gradle.mac_app
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
ConstructorsConstructorDescriptionCreates the task with default group, description, and output directory convention. -
Method Summary
Modifier and TypeMethodDescriptionGets 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.DirectoryPropertyReturns the output directory property.org.gradle.api.file.DirectoryPropertyReturns the source directory property.voidsetAppName(String appName) Sets the app name.voidSets the output directory.voidSets the output directory as a string.voidCreates 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, 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
-
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
Gets the app name.- Returns:
- the app name
-
setAppName
Sets the app name.- Parameters:
appName- the app name to set
-
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
Gets the output directory.- Returns:
- the output directory
-
setOutdir
Sets the output directory as a string.- Parameters:
outdir- the output directory path
-
setOutdir
Sets the output directory.- Parameters:
outdir- the output directory
-
getMacApp
Gets the app bundle directory that will be archived.- Returns:
- app bundle directory
-
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.
-