Class ParserGWTJavaMojo

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

@Mojo(name="parserGWTJava", defaultPhase=GENERATE_RESOURCES) public class ParserGWTJavaMojo extends AbstractI18nParserMojo
To detect from GWT java files new I18n keys, says content of patterns :
  • @Key("XXX")
  • @LocalizableResource.Key("XXX")
  • @com.google.gwt.i18n.client.LocalizableResource.Key("XXX")
Note: this goal must always be invoked before the process-resources phase, otherwise all files will be considered as uptodate.
Since:
2.1
Author:
Tony Chemit - chemit@codelutin.com
  • Field Details

    • DEFAULT_INCLUDES

      public static final String DEFAULT_INCLUDES
      See Also:
    • defaultBasedir

      @Parameter(property="i18n.defaultBasedir", defaultValue="${basedir}/src/main/java") protected File defaultBasedir
      Root directory of the default entry.
    • defaultIncludes

      @Parameter(property="i18n.defaultIncludes", defaultValue="**/*.java", required=true) protected String defaultIncludes
      Default included files to process (ant-like expression). Note: default value is **\/*.java
    • outputGetter

      @Parameter(property="i18n.outputGetter", defaultValue="gwt-java.getter") protected String outputGetter
      Defines the file name of the getter where to put detected i18n keys while getter phase.
      Since:
      2.0
    • workdir

      @Parameter(property="i18n.workdir", defaultValue="${basedir}/target/i18n-workdir") protected File workdir
      Where to generated temporary processed files.
      Since:
      2.0
    • entryUpdater

      protected org.nuiton.io.MirroredFileUpdater entryUpdater
  • Constructor Details

    • ParserGWTJavaMojo

      public ParserGWTJavaMojo()
  • Method Details