Class NodeTask
- java.lang.Object
-
- com.atlassian.bamboo.specs.api.builders.EntityPropertiesBuilder<P>
-
- com.atlassian.bamboo.specs.api.builders.task.Task<B,P>
-
- com.atlassian.bamboo.specs.builders.task.BaseNodeTask<NodeTask,NodeTaskProperties>
-
- com.atlassian.bamboo.specs.builders.task.NodeTask
-
public class NodeTask extends BaseNodeTask<NodeTask,NodeTaskProperties>
Represents a generic task that executes a Node.js script.Bamboo provides additional tasks for more specific Node.js tools, which are suggested to use instead of this task for convenience. For example:
NpmTask,GulpTask.- See Also:
- nodejs.org
-
-
Field Summary
-
Fields inherited from class com.atlassian.bamboo.specs.builders.task.BaseNodeTask
environmentVariables, nodeExecutable, workingSubdirectory
-
Fields inherited from class com.atlassian.bamboo.specs.api.builders.task.Task
conditions, description, requirements, taskEnabled
-
-
Constructor Summary
Constructors Constructor Description NodeTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeTaskarguments(@Nullable java.lang.String arguments)Additional command line arguments to pass to node when executing the script.protected @NotNull NodeTaskPropertiesbuild()booleanequals(java.lang.Object o)inthashCode()NodeTaskscript(@NotNull java.lang.String script)Script to execute with node (e.g.-
Methods inherited from class com.atlassian.bamboo.specs.builders.task.BaseNodeTask
environmentVariables, nodeExecutable, workingSubdirectory
-
Methods inherited from class com.atlassian.bamboo.specs.api.builders.task.Task
conditions, description, enabled, requirements, toString
-
-
-
-
Method Detail
-
script
public NodeTask script(@NotNull @NotNull java.lang.String script)
Script to execute with node (e.g. 'server.js', 'application.js').
-
arguments
public NodeTask arguments(@Nullable @Nullable java.lang.String arguments)
Additional command line arguments to pass to node when executing the script.
-
build
@NotNull protected @NotNull NodeTaskProperties build()
- Specified by:
buildin classTask<NodeTask,NodeTaskProperties>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classBaseNodeTask<NodeTask,NodeTaskProperties>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classBaseNodeTask<NodeTask,NodeTaskProperties>
-
-