public interface NodeJSExtensionMethods extends NodeJSConfigCacheSafeOperations
NodeJS methods that an extension should implement.
| Type Params | Return Type | Name and description |
|---|---|---|
|
public void |
appendPath(Provider<String> postfix)Add search to system path. |
|
public void |
environment(java.util.Map<String, ?> args)Add environmental variables to be passed to the exe. |
|
public java.util.Map<String, String> |
getEnvironment()Environment for running the exe |
|
public void |
prefixPath(Provider<String> prefix)Add search to system path |
|
public void |
setEnvironment(java.util.Map<String, ?> args)Replaces current environment with new one. |
|
public void |
useSystemPath()Adds the system path to the execution environment. |
| Methods inherited from class | Name |
|---|---|
interface NodeJSConfigCacheSafeOperations |
from, getEnvironmentProvider, getExecutable, getNpmCliJsProvider |
Add search to system path.
In the case of a task this will be appended to both the task and project extension's version of the system path.
postfix - Provider of a path item that can be appended to the current system path.Add environmental variables to be passed to the exe.
args - Environmental variable key-value map.Environment for running the exe
Calling this will resolve all lazy-values in the variable map.
Add search to system path
In the case of a task this will be prefixed to both the task and project extension's version of the system path.
prefix - Provider of a path item that can be prefixed to the current system path.Replaces current environment with new one. If this is called on the task extension, no project extension environment will be used.
args - New environment key-value map of properties.Adds the system path to the execution environment.