Package de.sayayi.plugin.gradle.message
The MessageFormatPlugin provides the
messageFormat extension and registers the messageFormatPack task. The extension is represented by
MessageFormatExtension and allows configuring source
sets, pack filename and compression. Message inclusion/exclusion filters and duplicate handling are configured via
the nested messages block. Template
validation and filtering are configured via the nested
templates block.
The MessageFormatPackTask performs the actual scanning
and packing. It scans class files for message and template annotations, applies include/exclude filters based on
message codes and writes the result to a packed message file.
Duplicate message codes and template names are handled according to the configured
DuplicateStrategy.
- Seit:
- 0.8.0
-
KlasseBeschreibungStrategy for handling duplicate message codes and template names.Gradle extension
messageFormatfor configuring themessageFormatPacktask.Nested extension for configuring message inclusion/exclusion filters and duplicate message handling strategy.Gradle task for scanning messages and templates in classes and packing them into a single file which can be imported into aMessageSupport.ConfigurableMessageSupport.Gradle plugin that provides themessageFormatextension and registers themessageFormatPacktask for scanning and packing message format definitions found in compiled classes.Nested extension for configuring template validation and filtering.