Package de.fenvariel.maven.gettext
Class DistMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- de.fenvariel.maven.gettext.AbstractGettextMojo
-
- de.fenvariel.maven.gettext.DistMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="dist", defaultPhase=GENERATE_SOURCES) public class DistMojo extends AbstractGettextMojoGenerates ressource bundles.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static interfaceDistMojo.CommandlineFactoryprivate classDistMojo.MsgCatCommandlineFactoryprivate classDistMojo.MsgFmtCommandlineFactory
-
Field Summary
Fields Modifier and Type Field Description protected booleanasSourceOutputs the result as .java files and not classes if set to true.protected java.lang.StringjavaVersionJava version.protected java.lang.StringmsgcatCmdThe msgcat command.protected java.lang.StringmsgfmtCmdThe msgfmt command.protected java.lang.StringoutputFormatOutput format, can be "class" or "properties".protected java.lang.StringsourceLocaleThe locale of the messages in the source code.protected java.lang.StringtargetBundleThe package and file name of the generated class or properties files.-
Fields inherited from class de.fenvariel.maven.gettext.AbstractGettextMojo
extraArguments, keysFile, location, outputDirectory, poDirectory, project, sourceDirectory
-
-
Constructor Summary
Constructors Constructor Description DistMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()private booleanisNewer(java.io.File inputFile, java.io.File outputFile)private voidtouch(java.io.File file)-
Methods inherited from class de.fenvariel.maven.gettext.AbstractGettextMojo
addExtraArguments
-
-
-
-
Field Detail
-
msgcatCmd
@Parameter(defaultValue="msgcat", required=true) protected java.lang.String msgcatCmdThe msgcat command.
-
msgfmtCmd
@Parameter(defaultValue="msgfmt", required=true) protected java.lang.String msgfmtCmdThe 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 outputFormatOutput format, can be "class" or "properties".
-
javaVersion
@Parameter(defaultValue="2", required=true) protected java.lang.String javaVersionJava version. Can be "1" or "2".
-
sourceLocale
@Parameter(defaultValue="en", required=true) protected java.lang.String sourceLocaleThe 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.
-
-