Class GetterMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.nuiton.plugin.AbstractPlugin
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo, org.nuiton.plugin.Plugin, org.nuiton.plugin.PluginWithEncoding

@Mojo(name="get",
      defaultPhase=GENERATE_RESOURCES)
public class GetterMojo
extends AbstractI18nGenerateMojo
Recupere les différents fichiers des parsers en un fichier de proprietes.
Author:
Julien Ruchaud - ruchaud@codelutin.com
  • 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

    Fields 
    Modifier and Type Field Description
    protected static java.lang.String FROM_GETTERS  
    protected boolean keepGetters
    To keep generated getter files.

    Fields inherited from class org.nuiton.i18n.plugin.AbstractI18nGenerateMojo

    artifactId, out

    Fields inherited from class org.nuiton.i18n.plugin.AbstractI18nMojo

    bundles, encoding, locales, mavenSession, project, silent, verbose

    Fields inherited from interface org.apache.maven.plugin.Mojo

    ROLE
  • Constructor Summary

    Constructors 
    Constructor Description
    GetterMojo()  
  • Method Summary

    Modifier and Type Method Description
    protected boolean checkSkip()  
    protected void doAction()  

    Methods inherited from class org.nuiton.i18n.plugin.AbstractI18nGenerateMojo

    addGetter, getGetterFile, needGeneration

    Methods inherited from class org.nuiton.plugin.AbstractPlugin

    acceptPackaging, addCompileSourceRoots, addDirectoryToUrlsList, addResourceDir, addTestCompileSourceRoots, addTestResourceDir, addUrlToUrlsList, afterExecute, checkEncoding, checkResource, checkRunOnceDone, copyFile, createDirectoryIfNecessary, createNewFile, deleteFile, execute, getFileFromBasedir, getFilesToTreate, getFilesToTreateForRoots, getRootProject, getTemplate, hasClassPath, initClassLoader, isExecutionRoot, isFileNewerThanPomFile, needInvoke, needInvoke, 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

    execute, getLog, setLog
  • Field Details

    • keepGetters

      @Parameter(property="i18n.keepGetters", defaultValue="false") protected boolean keepGetters
      To keep generated getter files. Note: By default, this property is not active.
    • FROM_GETTERS

      protected static final java.lang.String FROM_GETTERS
      See Also:
      Constant Field Values
  • Constructor Details

  • Method Details

    • checkSkip

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

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