Class ParserJavaMojo

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="parserJava",
      defaultPhase=GENERATE_RESOURCES)
public class ParserJavaMojo
extends AbstractI18nParserMojo
To parse java files to detect new i18n keys. Note: this goal must always be invoked before the process-resources phase, otherwise all files will be considered as uptodate.
Author:
Julien Ruchaud - ruchaud@codelutin.com, Tony Chemit - chemit@codelutin.com
  • Field Details

    • DEFAULT_INCLUDES

      public static final java.lang.String DEFAULT_INCLUDES
      See Also:
      Constant Field Values
    • defaultBasedir

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

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

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

  • Method Details