Class ParserXmlUserMojo

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

@Mojo(name="parserXml", defaultPhase=GENERATE_RESOURCES) public class ParserXmlUserMojo extends AbstractParserXmlMojo
To obtain i18n keys from xml files using the userRulesFiles (and an optional coreRuleFile if any serves your purpose). Note: this goal must always be invoked before the process-resources phase, otherwise all files will be considered as uptodate.
Since:
2.0
Author:
Tony Chemit - chemit@codelutin.com
  • Field Details

    • basedir

      @Parameter(property="i18n.xmlBasedir", defaultValue="${basedir}/src/main/resources", required=true) protected File basedir
      Default directory where to look for files.
      Since:
      2.0
    • includes

      @Parameter(property="i18n.xmlIncludes", required=true) protected String includes
      Defines files to parse.
      Since:
      2.0
    • coreRuleFile

      @Parameter(property="i18n.coreRuleFiles") protected String coreRuleFile
      Defines an optional files which contain xpath rules to obtain i18n keys in xml files and is defined in plugin.
      Since:
      2.0
    • outputGetter

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

    • ParserXmlUserMojo

      public ParserXmlUserMojo()
  • Method Details