public class EnvironmentConfigurator extends Object implements Consumer<BaseProject<?>>
Constructor and Description |
---|
EnvironmentConfigurator(Map<String,String> edit)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(BaseProject<?> project) |
static EnvironmentConfigurator |
nothing()
Returns a NO-OP configurator.
|
static EnvironmentConfigurator |
of(Map<String,String> variables)
Returns a configurator which edits the given environment variables.
|
static EnvironmentConfigurator |
of(String name,
Path path)
Returns a configurator which edits the given environment variable.
|
static EnvironmentConfigurator |
of(String name,
String value)
Returns a configurator which edits the given environment variable.
|
static EnvironmentConfigurator |
system()
Returns a system
EnvironmentConfigurator . |
public static EnvironmentConfigurator nothing()
public static EnvironmentConfigurator system()
EnvironmentConfigurator
.EnvironmentConfigurator
public static EnvironmentConfigurator of(String name, String value)
name
- the variable namevalue
- the variable valuepublic static EnvironmentConfigurator of(String name, Path path)
name
- the variable namepath
- the target path (nullable)public static EnvironmentConfigurator of(Map<String,String> variables)
variables
- the variablespublic void accept(BaseProject<?> project)
accept
in interface Consumer<BaseProject<?>>
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.