NodeExecTask

abstract class NodeExecTask : DefaultTask, PluginLogger

Basic task for executing various node commands. Provides access to node executable.

Constructors

Link copied to clipboard
fun NodeExecTask()

Functions

Link copied to clipboard
open override fun appendParallelSafeAction(p0: Action<in Task>)
Link copied to clipboard
open operator override fun compareTo(other: Task): Int
Link copied to clipboard
open override fun configure(p0: Closure<Any>): Task
Link copied to clipboard
open fun debug(message: () -> String)

Logs at debug level

Link copied to clipboard
open override fun dependsOn(vararg p0: Any): Task
Link copied to clipboard
open override fun doFirst(p0: Closure<Any>): Task
open override fun doFirst(p0: Action<in Task>): Task
open override fun doFirst(p0: String, p1: Action<in Task>): Task
Link copied to clipboard
open override fun doLast(p0: Closure<Any>): Task
open override fun doLast(p0: Action<in Task>): Task
open override fun doLast(p0: String, p1: Action<in Task>): Task
Link copied to clipboard
open override fun doNotTrackState(p0: String)
Link copied to clipboard
open fun error(message: () -> String)

Logs at error level

Link copied to clipboard
open override fun finalizedBy(vararg p0: Any): Task
Link copied to clipboard
open override fun getActions(): MutableList<Action<in Task>>
Link copied to clipboard
open override fun getAnt(): AntBuilder
Link copied to clipboard
@Internal
open override fun getAsDynamicObject(): DynamicObject
Link copied to clipboard
@Internal
open override fun getConvention(): Convention
Link copied to clipboard
open override fun getDependsOn(): MutableSet<Any>
Link copied to clipboard
open override fun getDescription(): String?
Link copied to clipboard
open override fun getDestroyables(): TaskDestroyables
Link copied to clipboard
open override fun getDidWork(): Boolean
Link copied to clipboard
open override fun getEnabled(): Boolean
Link copied to clipboard
open override fun getExtensions(): ExtensionContainer
Link copied to clipboard
open override fun getFinalizedBy(): TaskDependency
Link copied to clipboard
open override fun getGroup(): String?
Link copied to clipboard
open override fun getIdentityPath(): Path
Link copied to clipboard
open override fun getImpliesSubProjects(): Boolean
Link copied to clipboard
open override fun getInputs(): TaskInputsInternal
Link copied to clipboard
@Internal
open override fun getLifecycleDependencies(): TaskDependencyInternal
Link copied to clipboard
open override fun getLocalState(): TaskLocalState
Link copied to clipboard
open override fun getLogger(): Logger
Link copied to clipboard
open override fun getLogging(): LoggingManager
Link copied to clipboard
open override fun getMustRunAfter(): TaskDependency
Link copied to clipboard
open override fun getName(): String
Link copied to clipboard
open override fun getOnlyIf(): Spec<in TaskInternal>
Link copied to clipboard
open override fun getOutputs(): TaskOutputsInternal
Link copied to clipboard
open override fun getPath(): String
Link copied to clipboard
open override fun getProject(): Project
Link copied to clipboard
open override fun getReasonNotToTrackState(): Optional<String>
open override fun getReasonTaskIsIncompatibleWithConfigurationCache(): Optional<String>
Link copied to clipboard
open override fun getRequiredServices(): MutableSet<Provider<out BuildService<*>>>
Link copied to clipboard
@Internal
open fun getServices(): ServiceRegistry
Link copied to clipboard
open override fun getSharedResources(): MutableList<ResourceLock>
Link copied to clipboard
open override fun getShouldRunAfter(): TaskDependency
Link copied to clipboard
open override fun getStandardOutputCapture(): StandardOutputCapture
Link copied to clipboard
open override fun getState(): TaskStateInternal
Link copied to clipboard
open override fun getTaskActions(): MutableList<InputChangesAwareTaskAction>
Link copied to clipboard
open override fun getTaskDependencies(): TaskDependencyInternal
Link copied to clipboard
open override fun getTaskIdentity(): TaskIdentity<*>
Link copied to clipboard
open override fun getTemporaryDir(): File
Link copied to clipboard
open override fun getTemporaryDirFactory(): Factory<File>
Link copied to clipboard
open override fun getTimeout(): Property<Duration>
Link copied to clipboard
open override fun hasProperty(p0: String): Boolean
Link copied to clipboard
open override fun hasTaskActions(): Boolean
Link copied to clipboard
open fun info(message: () -> String)

Logs at info level

Link copied to clipboard
open override fun isCompatibleWithConfigurationCache(): Boolean
Link copied to clipboard
@Internal
open fun isEnabled(): Boolean
Link copied to clipboard
open override fun isHasCustomActions(): Boolean
Link copied to clipboard
open override fun mustRunAfter(vararg p0: Any): Task
Link copied to clipboard
fun nodeExec(args: Collection<Any?>, config: Action<ExecSpec> = Action {}): ExecResult

Executes a Node command

Link copied to clipboard
fun nodeHome(path: String)
Link copied to clipboard
open override fun notCompatibleWithConfigurationCache(p0: String)
Link copied to clipboard
open override fun onlyIf(p0: Closure<Any>)
open override fun onlyIf(p0: Spec<in Task>)
Link copied to clipboard
open override fun prependParallelSafeAction(p0: Action<in Task>)
Link copied to clipboard
open override fun property(p0: String): Any?
Link copied to clipboard
open override fun setActions(p0: MutableList<Action<in Task>>)
Link copied to clipboard
open override fun setDependsOn(p0: MutableIterable<*>)
Link copied to clipboard
open override fun setDescription(p0: String?)
Link copied to clipboard
open override fun setDidWork(p0: Boolean)
Link copied to clipboard
open override fun setEnabled(p0: Boolean)
Link copied to clipboard
open override fun setFinalizedBy(p0: MutableIterable<*>)
Link copied to clipboard
open override fun setGroup(p0: String?)
Link copied to clipboard
open override fun setImpliesSubProjects(p0: Boolean)
Link copied to clipboard
open override fun setMustRunAfter(p0: MutableIterable<*>)
Link copied to clipboard
open override fun setOnlyIf(p0: Closure<Any>)
open override fun setOnlyIf(p0: Spec<in Task>)
Link copied to clipboard
open override fun setProperty(p0: String, p1: Any)
Link copied to clipboard
open override fun setShouldRunAfter(p0: MutableIterable<*>)
Link copied to clipboard
open override fun shouldRunAfter(vararg p0: Any): TaskDependency
Link copied to clipboard
open override fun usesService(p0: Provider<out BuildService<*>>)
Link copied to clipboard
open fun warn(message: () -> String)

Logs at warn level

Properties

Link copied to clipboard
@get:InputFile
@get:PathSensitive(value = PathSensitivity.NAME_ONLY)
val node: Provider<RegularFile>

Main NodeJS executable. Allows for executing any js script from your builds.

Link copied to clipboard
@get:InputDirectory
@get:PathSensitive(value = PathSensitivity.NAME_ONLY)
abstract val nodeHome: DirectoryProperty

Base NodeJS directory used to extract other node executables from. Defaults to 'NODE_HOME' env variable.

Inheritors

Link copied to clipboard