org.xnap.commons.maven.gettext
Class GettextMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.xnap.commons.maven.gettext.AbstractGettextMojo
          extended by 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 class org.xnap.commons.maven.gettext.AbstractGettextMojo
keysFile, outputDirectory, poDirectory, sourceDirectory
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
GettextMojo()
           
 
Method Summary
 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

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
    
 
 

Constructor Detail

GettextMojo

public GettextMojo()
Method Detail

execute

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


Copyright © 2013. All Rights Reserved.