Class RunNodeTask
- java.lang.Object
-
- org.gradle.api.internal.AbstractTask
-
- org.gradle.api.DefaultTask
-
- org.siouan.frontendgradleplugin.tasks.AbstractRunScriptTask
-
- org.siouan.frontendgradleplugin.tasks.RunNodeTask
-
- All Implemented Interfaces:
java.lang.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 RunNodeTask extends AbstractRunScriptTask
Task provided as a type to let developers implement custom task based on it. The task does not expose Node related options to avoid duplicating the plugin configuration. Using this task as a type to register a custom task requires only to define thescriptattribute, and to make the custom task depends on theinstallNodeorinstallFrontendtasks. Choosing the related parent task will depend on the user needs.A typical usage of this task in a 'build.gradle' file would be:
tasks.register('mytask', org.siouan.frontendgradleplugin.tasks.RunNodeTask) { dependsOn tasks.named('installFrontend') script = 'myscript' }- Since:
- 1.2.0
-
-
Constructor Summary
Constructors Constructor Description RunNodeTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ExecutorgetExecutionType()org.gradle.api.provider.Property<java.lang.String>getScript()-
Methods inherited from class org.siouan.frontendgradleplugin.tasks.AbstractRunScriptTask
execute, getLoggingLevel, getNodeInstallDirectory, getPackageJsonDirectory, getYarnInstallDirectory
-
Methods inherited from class org.gradle.api.internal.AbstractTask
appendParallelSafeAction, compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getIdentityPath, getImpliesSubProjects, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getRequiredServices, getServices, getSharedResources, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTaskIdentity, getTemporaryDir, getTemporaryDirFactory, getTimeout, hasProperty, hasTaskActions, injectIntoNewInstance, isEnabled, isHasCustomActions, mustRunAfter, onlyIf, onlyIf, prependParallelSafeAction, property, replaceLogger, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, toString, usesService
-
-
-
-
Method Detail
-
getScript
@Input public org.gradle.api.provider.Property<java.lang.String> getScript()
-
getExecutionType
protected Executor getExecutionType()
- Overrides:
getExecutionTypein classAbstractRunScriptTask
-
-