Class ParserValidationMojo

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

    @Mojo(name="parserValidation",
          defaultPhase=GENERATE_RESOURCES)
    public class ParserValidationMojo
    extends AbstractParserXmlMojo
    Find i18n keys from xworks xml validation files. Note: this goal must always be invoked before the process-resources phase, otherwise all files will be considered as uptodate.
    Author:
    Tony Chemit - chemit@codelutin.com
    • Field Detail

      • defaultBasedir

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

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

        @Parameter(property="i18n.coreRuleFile",
                   defaultValue="validation.rules",
                   required=true)
        protected String coreRuleFile
        Defines the core rules file used to detect i18n keys in xml validation files. Note : If you do not want to use it, set it to empty and fill the AbstractParserXmlMojo.userRulesFiles parameter.
        Since:
        2.0
      • useLocalResolver

        @Parameter(property="i18n.useLocalResolver",
                   defaultValue="true")
        protected boolean useLocalResolver
        Always use the local xworks dtd to increase performance.
        Since:
        1.6.0
      • outputGetter

        @Parameter(property="i18n.outputGetter",
                   defaultValue="validation.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 Detail

      • ParserValidationMojo

        public ParserValidationMojo()