Class NodeTask

  • 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>
    Direct Known Subclasses:
    NpmBuildTask, NpmInstallTask, NpmTestTask

    public abstract class NodeTask
    extends org.gradle.api.DefaultTask
    implements JavaToolsTask
    Base class for node based tasks.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.gradle.api.Task

        org.gradle.api.Task.Namer
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static java.lang.String NODE_MODULES_NAME  
      protected static java.lang.String PACKAGE_JSON_NAME  
      protected static java.lang.String PACKAGE_LOCK_JSON_NAME  
      • 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
      NodeTask()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void afterEvaluate​(org.gradle.api.Project project)
      Performs the necessary afterEvalute actions.
      protected java.io.File nodeProjectFile​(java.lang.String name)  
      protected NpmWrapper npmWrapperInstance()  
      protected java.io.File 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
      • 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

        getConvention
    • Field Detail

      • PACKAGE_JSON_NAME

        protected static final java.lang.String PACKAGE_JSON_NAME
        See Also:
        Constant Field Values
      • PACKAGE_LOCK_JSON_NAME

        protected static final java.lang.String PACKAGE_LOCK_JSON_NAME
        See Also:
        Constant Field Values
      • NODE_MODULES_NAME

        protected static final java.lang.String NODE_MODULES_NAME
        See Also:
        Constant Field Values
    • Constructor Detail

      • NodeTask

        public NodeTask()
    • Method Detail

      • afterEvaluate

        public void afterEvaluate​(org.gradle.api.Project project)
        Description copied from interface: JavaToolsTask
        Performs the necessary afterEvalute actions.
        Specified by:
        afterEvaluate in interface JavaToolsTask
        Parameters:
        project - the Project running the task.
        See Also:
        Project.afterEvaluate(org.gradle.api.Action)
      • npmWrapperInstance

        protected NpmWrapper npmWrapperInstance()
                                         throws java.io.IOException,
                                                java.lang.InterruptedException
        Throws:
        java.io.IOException
        java.lang.InterruptedException
      • nodeProjectFile

        protected java.io.File nodeProjectFile​(java.lang.String name)
      • taskOutFile

        protected java.io.File taskOutFile()