Class MergeMojo

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

    @Mojo(name="merge",
          defaultPhase=GENERATE_RESOURCES)
    public class MergeMojo
    extends AbstractGettextMojo
    Invokes msgmerge to update po files.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String backup
      The --backup option.
      protected boolean fuzzy
      Activates fuzzy matching if set to true.
      protected java.lang.String msgmergeCmd
      The msgmerge command.
      protected boolean multiDomain
      Keep the previous msgids of translated messages, marked with '#|', when adding the fuzzy marker to such messages.
      protected boolean previous
      Keep the previous msgids of translated messages, marked with '#|', when adding the fuzzy marker to such messages.
      protected boolean update
      The --update option.
      • Fields inherited from interface org.apache.maven.plugin.Mojo

        ROLE
    • Constructor Summary

      Constructors 
      Constructor Description
      MergeMojo()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute()  
      • 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
    • Field Detail

      • msgmergeCmd

        @Parameter(defaultValue="msgmerge")
        protected java.lang.String msgmergeCmd
        The msgmerge command.
      • backup

        @Parameter(defaultValue="none")
        protected java.lang.String backup
        The --backup option. One of: 'none', 'numbered', 'existing', 'simple'
      • update

        @Parameter(defaultValue="true")
        protected boolean update
        The --update option. Update po-file. Do nothing if po-file is already up to date.
      • fuzzy

        @Parameter(defaultValue="false")
        protected boolean fuzzy
        Activates fuzzy matching if set to true.
      • previous

        @Parameter(defaultValue="false")
        protected boolean previous
        Keep the previous msgids of translated messages, marked with '#|', when adding the fuzzy marker to such messages.
      • multiDomain

        @Parameter(defaultValue="false")
        protected boolean multiDomain
        Keep the previous msgids of translated messages, marked with '#|', when adding the fuzzy marker to such messages.
    • Constructor Detail

      • MergeMojo

        public MergeMojo()
    • Method Detail

      • execute

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