Class NpmTask
- 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<NpmTask,NpmTaskProperties>
-
- com.atlassian.bamboo.specs.builders.task.NpmTask
-
public class NpmTask extends BaseNodeTask<NpmTask,NpmTaskProperties>
Represents task that executes an npm command.- See Also:
- nodejs.org, www.nmpjs.com
-
-
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 NpmTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected @NotNull NpmTaskPropertiesbuild()NpmTaskcommand(@NotNull java.lang.String command)Sets which command to execute, e.g.booleanequals(java.lang.Object o)inthashCode()NpmTaskuseIsolatedCache(boolean useIsolatedCache)Sets whether the npm task should use isolated directory for caches.-
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
-
command
public NpmTask command(@NotNull @NotNull java.lang.String command)
Sets which command to execute, e.g.install.
-
useIsolatedCache
public NpmTask useIsolatedCache(boolean useIsolatedCache)
Sets whether the npm task should use isolated directory for caches. Should be enabled when different incompatible versions of npm may be used on one Bamboo agent. Defaults to false.
-
build
@NotNull protected @NotNull NpmTaskProperties build()
- Specified by:
buildin classTask<NpmTask,NpmTaskProperties>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classBaseNodeTask<NpmTask,NpmTaskProperties>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classBaseNodeTask<NpmTask,NpmTaskProperties>
-
-