Class ReportMojo

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

    @Mojo(name="report",
          defaultPhase=PROCESS_SOURCES)
    public class ReportMojo
    extends org.apache.maven.reporting.AbstractMavenReport
    Goal that generates a report.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String msgfmtCmd
      msgfmt command.
      private static java.util.regex.Pattern patternFuzzy  
      private static java.util.regex.Pattern patternTranslated  
      private static java.util.regex.Pattern patternUntranslated  
      protected java.io.File poDirectory
      PO directory.
      • Fields inherited from class org.apache.maven.reporting.AbstractMavenReport

        locale, mojoExecution, outputDirectory, outputFormat, outputTimestamp, project, reactorProjects, remoteProjectRepositories, repoSession, siteDirectory, siteRenderer, siteTool
      • Fields inherited from interface org.apache.maven.reporting.MavenReport

        CATEGORY_PROJECT_INFORMATION, CATEGORY_PROJECT_REPORTS, ROLE
      • Fields inherited from interface org.apache.maven.plugin.Mojo

        ROLE
    • Constructor Summary

      Constructors 
      Constructor Description
      ReportMojo()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private void createReport​(org.apache.maven.doxia.sink.Sink sink, ReportMojo.Stats stats)  
      protected void executeReport​(java.util.Locale locale)  
      ReportMojo.Stats gatherStats()  
      java.lang.String getDescription​(java.util.Locale locale)  
      static java.util.Locale getLocale​(java.io.File file)  
      java.lang.String getName​(java.util.Locale locale)  
      java.lang.String getOutputName()  
      • Methods inherited from class org.apache.maven.reporting.AbstractMavenReport

        canGenerateReport, closeReport, constructXrefLocation, execute, generate, generate, getCategoryName, getInputEncoding, getLocale, getOutputDirectory, getOutputEncoding, getProject, getReportOutputDirectory, getSink, getSinkFactory, getSiteRenderer, getXrefLocation, isExternalReport, setReportOutputDirectory
      • Methods inherited from class org.apache.maven.plugin.AbstractMojo

        getLog, getPluginContext, setLog, setPluginContext
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.apache.maven.reporting.MavenReport

        getOutputPath
    • Field Detail

      • poDirectory

        @Parameter(defaultValue="src/main/po",
                   required=true)
        protected java.io.File poDirectory
        PO directory.
      • msgfmtCmd

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

        private static java.util.regex.Pattern patternTranslated
      • patternFuzzy

        private static java.util.regex.Pattern patternFuzzy
      • patternUntranslated

        private static java.util.regex.Pattern patternUntranslated
    • Constructor Detail

      • ReportMojo

        public ReportMojo()
    • Method Detail

      • executeReport

        protected void executeReport​(java.util.Locale locale)
                              throws org.apache.maven.reporting.MavenReportException
        Specified by:
        executeReport in class org.apache.maven.reporting.AbstractMavenReport
        Throws:
        org.apache.maven.reporting.MavenReportException
      • createReport

        private void createReport​(org.apache.maven.doxia.sink.Sink sink,
                                  ReportMojo.Stats stats)
      • getDescription

        public java.lang.String getDescription​(java.util.Locale locale)
      • getName

        public java.lang.String getName​(java.util.Locale locale)
      • getOutputName

        public java.lang.String getOutputName()
      • getLocale

        public static java.util.Locale getLocale​(java.io.File file)