Describes the configuration for a backend.
Type Params | Return Type | Name and description |
---|---|---|
|
void |
addTokenProvider(Provider<java.util.Map<java.lang.String, java.lang.Object>> tokenProvider) Adds a provider of tokens. |
|
void |
allTokenTemplate() The template is simply a dump of all tokens that were set. |
|
void |
clear() Clear all tokens. |
|
void |
configure(Action<? extends BackendSpec> configurator) Configures the backend according to a specification |
|
void |
configure(groovy.lang.Closure configurator) Configures the backend according to a specification |
|
void |
delimiterTokenPair(java.lang.String begin, java.lang.String end) Sets new delimiters for tokens. |
|
void |
setTemplateFile(java.lang.Object file) Applies a custom template file for backend configuration. |
|
void |
setTextTemplate(java.lang.Object text) Use a string as a template. |
|
void |
setTokens(java.util.Map<java.lang.String, java.lang.Object> newTokens) Replace all tokens with a new set. |
|
void |
token(java.lang.String key, java.lang.Object value) Set a single token value. |
|
void |
tokens(java.util.Map<java.lang.String, java.lang.Object> moreTokens) Adds more tokens. |
Adds a provider of tokens.
These providers are processed before any of the customisations on the class.
tokenProvider
- Addition provider of tokensThe template is simply a dump of all tokens that were set.
Clear all tokens.
Configures the backend according to a specification
configurator
- Configurating actionConfigures the backend according to a specification
configurator
- Configurating closureSets new delimiters for tokens.
Only useful when a custom template is used.
begin
- Start delimiter for tokensend
- End delimiter for tokensApplies a custom template file for backend configuration.
file
- Location of template fileUse a string as a template.
text
- Template that can be processed by Ant's ReplaceTokens
.Replace all tokens with a new set.
Only useful when a custom template is used.
newTokens
- New replacement setSet a single token value.
key
- Token namevalue
- Lazy-evaluted value. Anything that can resolve to a string.Adds more tokens.
Only useful when a custom template is used.
moreTokens
- Additional tokens for replacement.