Package de.fenvariel.maven.gettext
Class MergeMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- de.fenvariel.maven.gettext.AbstractGettextMojo
-
- de.fenvariel.maven.gettext.MergeMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="merge", defaultPhase=GENERATE_RESOURCES) public class MergeMojo extends AbstractGettextMojoInvokes msgmerge to update po files.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringbackupThe --backup option.protected booleanfuzzyActivates fuzzy matching if set to true.protected java.lang.StringmsgmergeCmdThe msgmerge command.protected booleanmultiDomainKeep the previous msgids of translated messages, marked with '#|', when adding the fuzzy marker to such messages.protected booleanpreviousKeep the previous msgids of translated messages, marked with '#|', when adding the fuzzy marker to such messages.protected booleanupdateThe --update option.-
Fields inherited from class de.fenvariel.maven.gettext.AbstractGettextMojo
extraArguments, keysFile, location, outputDirectory, poDirectory, project, sourceDirectory
-
-
Constructor Summary
Constructors Constructor Description MergeMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()-
Methods inherited from class de.fenvariel.maven.gettext.AbstractGettextMojo
addExtraArguments
-
-
-
-
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.
-
-