org.xnap.commons.maven.gettext
Class GettextMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.xnap.commons.maven.gettext.AbstractGettextMojo
org.xnap.commons.maven.gettext.GettextMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
public class GettextMojo
- extends AbstractGettextMojo
Invokes xgettext to extract messages from source code and store them in the
keys.pot file.
|
Field Summary |
protected String |
encoding
The encoding of the source Java files. utf-8 is a superset of ascii. |
protected org.apache.maven.model.FileSet |
extraSourceFiles
An optional set of source files that should be parsed with xgettext. |
protected String |
keywords
The keywords the xgettext parser will look for to extract messages. |
protected String |
xgettextCmd
The xgettext command. |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
| 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 |
encoding
protected String encoding
- The encoding of the source Java files. utf-8 is a superset of ascii.
keywords
protected String keywords
- The keywords the xgettext parser will look for to extract messages. The default value works with the Gettext Commons library.
xgettextCmd
protected String xgettextCmd
- The xgettext command.
extraSourceFiles
protected org.apache.maven.model.FileSet extraSourceFiles
- An optional set of source files that should be parsed with xgettext.
${basedir}
** /*.jsp
** /*.txt
GettextMojo
public GettextMojo()
execute
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
Copyright © 2013. All Rights Reserved.