Class ProcessorPlugin

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

@Mojo(name="process", requiresProject=true) public class ProcessorPlugin extends org.nuiton.plugin.AbstractPlugin implements org.nuiton.plugin.PluginWithEncoding
Maven2 plugin for Nuiton Processor. Created: 14 avril 2006
Author:
jruchaud <ruchaud@codelutin.com>, tchemit <chemit@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 File
    Répertoire cible.
    protected String
    Fichiers à exclure.
    protected String
    TODO
    protected String
    TODO
    protected Map<String,String>
    Les fichiers à traiter
    protected String
    Les filtres a utiliser par le processor, séparés par des virgules
    protected String
    Fichiers à inclure.
    protected boolean
    Ecrase les fichiers générés.
    protected org.apache.maven.project.MavenProject
    Dependance du projet.
    protected File
    Répertoire source.
    protected boolean
    Pour utiliser en phase de test.
    protected boolean
    Permet d'obtenir plus d'information.

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

    ROLE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
     
    protected void
     
    final String
     
    org.apache.maven.project.MavenProject
     
    protected void
     
    boolean
     
    protected void
     
    final void
    setEncoding(String encoding)
     
    void
    setProject(org.apache.maven.project.MavenProject project)
     
    void
    setVerbose(boolean verbose)
     

    Methods inherited from class org.nuiton.plugin.AbstractPlugin

    acceptPackaging, addCompileSourceRoots, addDirectoryToUrlsList, addResourceDir, addTestCompileSourceRoots, addTestResourceDir, addUrlToUrlsList, afterExecute, backupFile, checkEncoding, checkPackaging, checkResource, checkRunOnceDone, copyFile, createDirectoryIfNecessary, createNewFile, deleteFile, execute, getBackupFile, 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 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

    • project

      @Component protected org.apache.maven.project.MavenProject project
      Dependance du projet.
      Since:
      1.0.0
    • srcDir

      @Parameter(property="processor.srcDir", defaultValue="${basedir}/src/main/java") protected File srcDir
      Répertoire source.
      Since:
      0.10
    • destDir

      @Parameter(property="processor.destDir", defaultValue="${basedir}/target/processed-sources/java") protected File destDir
      Répertoire cible.
      Since:
      0.10
    • includes

      @Parameter(property="processor.includes") protected String includes
      Fichiers à inclure. Il s'agit des expressions séparées par des virgules. Exemple : *.java,*.xml
      Since:
      0.10
    • excludes

      @Parameter(property="processor.excludes") protected String excludes
      Fichiers à exclure. Il s'agit des expressions spérarées par des virgules. Exemple : *.java,*.xml
      Since:
      0.10
    • fileInPattern

      @Parameter(property="processor.fileInPattern", defaultValue="") protected String fileInPattern
      TODO
      Since:
      0.10
    • fileOutPattern

      @Parameter(property="processor.fileOutPattern", defaultValue="") protected String fileOutPattern
      TODO
      Since:
      0.10
    • filters

      @Parameter(property="processor.filters", defaultValue="org.nuiton.processor.filters.NoActionFilter") protected String filters
      Les filtres a utiliser par le processor, séparés par des virgules
      Since:
      0.10
    • overwrite

      @Parameter(property="processor.overwrite", defaultValue="false") protected boolean overwrite
      Ecrase les fichiers générés.
      Since:
      0.10
    • verbose

      @Parameter(property="processor.verbose", defaultValue="${maven.verbose}") protected boolean verbose
      Permet d'obtenir plus d'information.
      Since:
      0.10
    • testPhase

      @Parameter(property="processor.testPhase", defaultValue="false") protected boolean testPhase
      Pour utiliser en phase de test.
      Since:
      1.0.3
    • filesToTreate

      protected Map<String,String> filesToTreate
      Les fichiers à traiter
  • Constructor Details

    • ProcessorPlugin

      public ProcessorPlugin()
  • Method Details

    • isVerbose

      public boolean isVerbose()
      Specified by:
      isVerbose in interface org.nuiton.plugin.Plugin
    • setVerbose

      public void setVerbose(boolean verbose)
      Specified by:
      setVerbose in interface org.nuiton.plugin.Plugin
    • getProject

      public org.apache.maven.project.MavenProject getProject()
      Specified by:
      getProject in interface org.nuiton.plugin.Plugin
    • setProject

      public void setProject(org.apache.maven.project.MavenProject project)
      Specified by:
      setProject in interface org.nuiton.plugin.Plugin
    • getEncoding

      public final String getEncoding()
      Specified by:
      getEncoding in interface org.nuiton.plugin.PluginWithEncoding
    • setEncoding

      public final void setEncoding(String encoding)
      Specified by:
      setEncoding in interface org.nuiton.plugin.PluginWithEncoding
    • init

      protected void init() throws Exception
      Specified by:
      init in class org.nuiton.plugin.AbstractPlugin
      Throws:
      Exception
    • 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
    • printConfig

      protected void printConfig()