Class DistMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(name="dist",
          defaultPhase=GENERATE_SOURCES)
    public class DistMojo
    extends AbstractGettextMojo
    Generates ressource bundles.
    • Field Detail

      • msgcatCmd

        @Parameter(defaultValue="msgcat",
                   required=true)
        protected java.lang.String msgcatCmd
        The msgcat command.
      • msgfmtCmd

        @Parameter(defaultValue="msgfmt",
                   required=true)
        protected java.lang.String msgfmtCmd
        The msgfmt command.
      • targetBundle

        @Parameter(required=true)
        protected java.lang.String targetBundle
        The package and file name of the generated class or properties files.
      • outputFormat

        @Parameter(defaultValue="class",
                   required=true)
        protected java.lang.String outputFormat
        Output format, can be "class" or "properties".
      • javaVersion

        @Parameter(defaultValue="2",
                   required=true)
        protected java.lang.String javaVersion
        Java version. Can be "1" or "2".
      • sourceLocale

        @Parameter(defaultValue="en",
                   required=true)
        protected java.lang.String sourceLocale
        The locale of the messages in the source code.
      • asSource

        @Parameter(defaultValue="false")
        protected boolean asSource
        Outputs the result as .java files and not classes if set to true.
    • Constructor Detail

      • DistMojo

        public DistMojo()
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • isNewer

        private boolean isNewer​(java.io.File inputFile,
                                java.io.File outputFile)
      • touch

        private void touch​(java.io.File file)