Package de.sayayi.plugin.gradle.message
Klasse MessageFormatTemplatesExtension
Object
de.sayayi.plugin.gradle.message.MessageFormatTemplatesExtension
Nested extension for configuring template validation and filtering.
This extension is accessible via the templates block inside the messageFormat extension:
messageFormat {
templates {
validateReferences = true
ignore 'tpl-.*'
}
}
- Seit:
- 0.24.0
- Siehe auch:
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungReturn a list of regular expressions which will be matched against each template name.abstract org.gradle.api.provider.Property<@NotNull Boolean> Property containing a boolean stating whether to validate referenced templates.voidIgnore templates whose name matches the given regular expressions during template validation.
-
Konstruktordetails
-
MessageFormatTemplatesExtension
public MessageFormatTemplatesExtension()
-
-
Methodendetails
-
getIgnoreRegexFilters
Return a list of regular expressions which will be matched against each template name. If it matches, the template will be ignored during validation of referenced templates.- Gibt zurück:
- list of regular expressions for template name filtering, never
null - Siehe auch:
-
getValidateReferences
Property containing a boolean stating whether to validate referenced templates. The default value resolves totrue.If the property resolves to
truethe task will check whether all referenced templates (including nested templates) are available and included in the packed message file.If the property resolves to
falseno checks are performed. This may lead to a situation where a message cannot be formatted if the referenced template is missing from the message support.- Gibt zurück:
- validate referenced templates property, never
null
-
ignore
Ignore templates whose name matches the given regular expressions during template validation.- Parameter:
regex- array of regular expressions matching template names, notnull- Siehe auch:
-