Type | Name and description |
---|---|
java.lang.Object |
destinationDir |
java.lang.Object |
templateFile |
java.lang.Object |
textTemplate |
java.util.Map<java.lang.String, java.lang.Object> |
tokens |
Constructor and description |
---|
protected AbstractRemoteStateConfigGenerator
() |
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 |
delimiterTokenPair(java.lang.String begin, java.lang.String end) Sets new delimiters for tokens. |
|
void |
exec() |
|
Provider<java.io.File> |
getBackendConfigFile() The location of the backend configuration file. |
|
java.lang.String |
getBeginToken() Starting delimiter for tokens. |
|
protected java.lang.String |
getConfigFileName() Backend configuration file name |
|
Provider<java.io.File> |
getDestinationDir() The output directory for the configuration file |
|
java.lang.String |
getEndToken() Terminating delimiter for tokens |
|
protected ProjectOperations |
getProjectOperations() |
|
Provider<java.io.File> |
getTemplateFile() Returns location of template file. |
|
Provider<java.lang.String> |
getTextTemplate() Returns text template. |
|
java.util.Map<java.lang.String, java.lang.Object> |
getTokens() Returns the current set of tokens |
|
void |
setDestinationDir(java.lang.Object dir) Override the output directory. |
|
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 tokensSets new delimiters for tokens. Only useful when a custom template is used.
begin
- Start delimiter for tokensend
- End delimiter for tokensThe location of the backend configuration file.
Starting delimiter for tokens. Only useful when a custom template is used.
Backend configuration file name
The output directory for the configuration file
Terminating delimiter for tokens Only useful when a custom template is used.
Returns location of template file.
Returns text template.
Returns the current set of tokens
Override the output directory.
dir
- Anything convertible to a file path.Applies 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.Groovy Documentation