Class NodeInstallTask

  • 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 NodeInstallTask
    extends org.gradle.api.DefaultTask
    Task that downloads and installs a Node distribution.
    • 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

      Constructors 
      Constructor Description
      NodeInstallTask()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute()
      Executes the task: downloads and installs the distribution.
      org.gradle.api.provider.Property<org.gradle.api.logging.LogLevel> getLoggingLevel()  
      org.gradle.api.provider.Property<java.lang.String> getNodeDistributionUrl()  
      org.gradle.api.file.DirectoryProperty getNodeInstallDirectory()  
      org.gradle.api.provider.Property<java.lang.String> getNodeVersion()  
      • 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • NodeInstallTask

        public NodeInstallTask()
    • Method Detail

      • getLoggingLevel

        @Input
        @Optional
        public org.gradle.api.provider.Property<org.gradle.api.logging.LogLevel> getLoggingLevel()
      • getNodeVersion

        @Input
        public org.gradle.api.provider.Property<java.lang.String> getNodeVersion()
      • getNodeDistributionUrl

        @Input
        @Optional
        public org.gradle.api.provider.Property<java.lang.String> getNodeDistributionUrl()
      • getNodeInstallDirectory

        @OutputDirectory
        @Optional
        public org.gradle.api.file.DirectoryProperty getNodeInstallDirectory()
      • execute

        public void execute()
                     throws DistributionInstallerException,
                            java.security.NoSuchAlgorithmException
        Executes the task: downloads and installs the distribution.
        Throws:
        DistributionInstallerException - If the installer failed.
        java.security.NoSuchAlgorithmException - If the hashing algorithm used to check the distribution integrity is not supported.