org.nuiton.i18n.plugin
Class GenerateMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.nuiton.plugin.AbstractPlugin
          extended by org.nuiton.i18n.plugin.AbstractI18nMojo
              extended by org.nuiton.i18n.plugin.GenerateMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo, org.nuiton.plugin.Plugin

public class GenerateMojo
extends AbstractI18nMojo

Merge des fichiers de propriétés avec les anciens.

Author:
julien
Is defined to be executed in:
goal:
get
Is defined by the goal name:
gen
Is bound to the specified phase of the standard build lifecycle:
generate-resources

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.nuiton.plugin.Plugin
org.nuiton.plugin.Plugin.InitState, org.nuiton.plugin.Plugin.Packaging
 
Field Summary
protected  boolean checkBundle
          Un drapeau pour vérifier que les bundles ne contiennent pas d'entrées vides.
protected  boolean keepBackup
          conserve les anciens fichiers de traduction avec un suffix ~

Note: par defaut, on ne l'active pas.

protected  boolean keepGetters
          Conserve les fichiers de getters.
protected  boolean showEmpty
          Un drapeau pour afficher les entrées vides.
 
Fields inherited from class org.nuiton.i18n.plugin.AbstractI18nMojo
artifactId, bundles, encoding, genSrc, locales, out, project, silent, src, strictMode, verbose
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
GenerateMojo()
           
 
Method Summary
protected  boolean checkSkip()
           
protected  void doAction()
           
 
Methods inherited from class org.nuiton.i18n.plugin.AbstractI18nMojo
addGetter, backupFile, checkBundle, checkPackaging, getArtifactId, getBackupFile, getEncoding, getGetterFile, getI18nFile, getProject, init, isSilent, isStrictMode, isVerbose, needGeneration, setEncoding, setProject, setVerbose
 
Methods inherited from class org.nuiton.plugin.AbstractPlugin
acceptPackaging, addCompileSourceRoots, addDirectoryToUrlsList, addResourceDir, addTestCompileSourceRoots, addTestResourceDir, addUrlToUrlsList, afterExecute, checkResource, checkRunOnceDone, copyFile, createDirectoryIfNecessary, createNewFile, deleteFile, execute, getFileFromBasedir, getFilesToTreate, getFilesToTreateForRoots, getTemplate, initClassLoader, isExecutionRoot, isFileNewerThanPomFile, rejectPackaging, removeCompileSourceRoots, removeTestCompileSourceRoots, renameFile, writeFile
 
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
 
Methods inherited from interface org.apache.maven.plugin.Mojo
getLog, setLog
 

Field Detail

checkBundle

protected boolean checkBundle
Un drapeau pour vérifier que les bundles ne contiennent pas d'entrées vides.

Since:
1.0.0
Is defined by:
expression:
${i18n.checkBundle}
default-value:
true
Is required.

showEmpty

protected boolean showEmpty
Un drapeau pour afficher les entrées vides. (nécessite checkBundle activé).

Since:
1.0.0
Is defined by:
expression:
${i18n.showEmpty}
default-value:
false
Is required.

keepBackup

protected boolean keepBackup
conserve les anciens fichiers de traduction avec un suffix ~

Note: par defaut, on ne l'active pas.

Is defined by:
expression:
${i18n.keepBackup}
default-value:
false

keepGetters

protected boolean keepGetters
Conserve les fichiers de getters.

Is defined by:
expression:
${i18n.keepGetters}
default-value:
false
Constructor Detail

GenerateMojo

public GenerateMojo()
Method Detail

checkSkip

protected boolean checkSkip()
Overrides:
checkSkip in class org.nuiton.plugin.AbstractPlugin

doAction

protected void doAction()
                 throws Exception
Specified by:
doAction in class org.nuiton.plugin.AbstractPlugin
Throws:
Exception


Copyright © 2007-2010 CodeLutin. All Rights Reserved.