Class CheckBundlesIntegrityMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.nuiton.plugin.AbstractPlugin
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo, org.nuiton.plugin.Plugin, org.nuiton.plugin.PluginWithEncoding

@Mojo(name="check-bundles-integrity", defaultPhase=PREPARE_PACKAGE) public class CheckBundlesIntegrityMojo extends AbstractI18nGenerateMojo
Check bundles integrity. That all keys have a value in all bundles.
Since:
3.5
  • Field Details

    • src

      @Parameter(property="i18n.src", defaultValue="${basedir}/src/main/resources/i18n", required=true) protected File src
      Directory where to find project i18n files.
    • showEmpty

      @Parameter(property="i18n.showEmpty", defaultValue="false", required=true) protected boolean showEmpty
      Since:
      1.0.0
    • showMissing

      @Parameter(property="i18n.showMissing", defaultValue="false", required=true) protected boolean showMissing
      A flag to show missing i18n translation.
      Since:
      3.5
    • failsIfWarning

      @Parameter(property="i18n.failsIfWarning", defaultValue="false") protected boolean failsIfWarning
      A flag to make the build fails if there is some warnings while generating bundle, says when it misses some translations. Note : This parameter should be used in a release profile to ensure bundles are complete.
      Since:
      2.0
  • Constructor Details

    • CheckBundlesIntegrityMojo

      public CheckBundlesIntegrityMojo()
  • Method Details

    • doAction

      protected void doAction() throws Exception
      Specified by:
      doAction in class org.nuiton.plugin.AbstractPlugin
      Throws:
      Exception