public interface NodeJSExtensionMethods extends NodeJSConfigCacheSafeOperations
| Modifier and Type | Method and Description |
|---|---|
void |
appendPath(org.gradle.api.provider.Provider<java.lang.String> postfix)
Add search to system path.
|
void |
environment(java.util.Map<java.lang.String,?> args)
Add environmental variables to be passed to the exe.
|
java.util.Map<java.lang.String,java.lang.String> |
getEnvironment()
Environment for running the exe
|
void |
prefixPath(org.gradle.api.provider.Provider<java.lang.String> prefix)
Add search to system path
|
void |
setEnvironment(java.util.Map<java.lang.String,?> args)
Replaces current environment with new one.
|
void |
useSystemPath()
Adds the system path to the execution environment.
|
from, getEnvironmentProvider, getExecutable, getNpmCliJsProvidervoid setEnvironment(java.util.Map<java.lang.String,?> args)
args - New environment key-value map of properties.java.util.Map<java.lang.String,java.lang.String> getEnvironment()
Calling this will resolve all lazy-values in the variable map.
void environment(java.util.Map<java.lang.String,?> args)
args - Environmental variable key-value map.void useSystemPath()
void appendPath(org.gradle.api.provider.Provider<java.lang.String> postfix)
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.void prefixPath(org.gradle.api.provider.Provider<java.lang.String> prefix)
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.