Package de.carne.gradle.plugin.java.task
Class NpmInstallTask
- java.lang.Object
-
- org.gradle.api.internal.AbstractTask
-
- org.gradle.api.DefaultTask
-
- de.carne.gradle.plugin.java.task.NodeTask
-
- de.carne.gradle.plugin.java.task.NpmInstallTask
-
- All Implemented Interfaces:
JavaToolsTask,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 NpmInstallTask extends NodeTask
NpmInstallTask - Run npm install.
-
-
Field Summary
-
Fields inherited from class de.carne.gradle.plugin.java.task.NodeTask
NODE_MODULES_NAME, PACKAGE_JSON_NAME, PACKAGE_LOCK_JSON_NAME
-
-
Constructor Summary
Constructors Constructor Description NpmInstallTask()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterEvaluate(org.gradle.api.Project project)Performs the necessary afterEvalute actions.voidapply(org.gradle.api.Project project)Performs the necessary apply actions.static NpmInstallTaskcreate(org.gradle.api.Project project)Creates the NpmInstallTask.voidexecuteNpmInstall()Executes NpmInstallTask.-
Methods inherited from class de.carne.gradle.plugin.java.task.NodeTask
nodeProjectFile, npmWrapperInstance, taskOutFile
-
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, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService
-
Methods inherited from class org.gradle.api.internal.AbstractTask
appendParallelSafeAction, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getOnlyIf, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isEnabled, isHasCustomActions, prependParallelSafeAction, setImpliesSubProjects
-
-
-
-
Method Detail
-
create
public static NpmInstallTask create(org.gradle.api.Project project)
Creates the NpmInstallTask.- Parameters:
project- the Project to create the task for.- Returns:
- the created NpmInstallTask object.
-
apply
public void apply(org.gradle.api.Project project)
Description copied from interface:JavaToolsTaskPerforms the necessary apply actions.- Parameters:
project- the Project running the task.- See Also:
Plugin.apply(Object)
-
afterEvaluate
public void afterEvaluate(org.gradle.api.Project project)
Description copied from interface:JavaToolsTaskPerforms the necessary afterEvalute actions.- Specified by:
afterEvaluatein interfaceJavaToolsTask- Overrides:
afterEvaluatein classNodeTask- Parameters:
project- the Project running the task.- See Also:
Project.afterEvaluate(org.gradle.api.Action)
-
executeNpmInstall
public void executeNpmInstall()
Executes NpmInstallTask.
-
-