public class GradleConfigurationContainer extends Object
| Constructor and Description |
|---|
GradleConfigurationContainer() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(String name)
Register a
configuration with the specified name. |
Stream<GradleConfiguration> |
customizations()
Return the configuration that should be customized.
|
void |
customize(String name,
Consumer<GradleConfiguration.Builder> configuration)
Customize an existing
configuration with the specified name. |
boolean |
has(String name)
Specify if this container has a configuration with the specified
name. |
boolean |
isEmpty()
Specify if this container is empty.
|
Stream<String> |
names()
Return the configuration names that should be registered.
|
boolean |
remove(String name)
Remove the configuration with the specified
name. |
public boolean isEmpty()
true if no custom configuration is registered or no configuration
is customizedpublic boolean has(String name)
name.name - the name of a configurationtrue if a configuration with the specified name existspublic Stream<String> names()
public Stream<GradleConfiguration> customizations()
public void add(String name)
configuration with the specified name.name - the name of a configurationpublic void customize(String name, Consumer<GradleConfiguration.Builder> configuration)
configuration with the specified name. If the
configuration has already been customized, the consumer can be used to further tune
the existing configuration customization.name - the name of the configuration to customizeconfiguration - a Consumer to customize the
GradleConfigurationpublic boolean remove(String name)
name.name - the name of a configuration to register or customizationtrue if such a configuration was registered, false
otherwiseCopyright © 2020 Pivotal Software, Inc.. All rights reserved.