org.nuiton.processor.plugin
Class ProcessorPlugin

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

public class ProcessorPlugin
extends org.nuiton.plugin.AbstractPlugin

Maven2 plugin for Nuiton Processor.

Created: 14 avril 2006

Version:
$Revision: 317 $

Last update: $Date: 2010-03-09 19:22:11 +0100 (mar., 09 mars 2010) $ by : $Author: tchemit $

Author:
ruchaud
Is defined by the goal name:
process
Requires a Maven project to run:
true

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  File destDir
          Répertoire cible
protected  String excludes
          Fichiers à exclure.
protected  String fileInPattern
          ???
protected  String fileOutPattern
           
protected  Map<String,String> filesToTreate
          Les fichiers à traiter
protected  String filters
          Les filtres a utiliser par le processor, séparés par des virgules
protected  String includes
          Fichiers à inclure.
protected  boolean overwrite
          Ecrase les fichiers générés
protected  org.apache.maven.project.MavenProject project
          Dependance du projet.
protected  File srcDir
          Répertoire source
protected  boolean testPhase
          Pour utiliser en phase de test
protected  boolean verbose
          Permet d'obtenir plus d'information
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
ProcessorPlugin()
           
 
Method Summary
protected  boolean checkSkip()
           
protected  void doAction()
           
 org.apache.maven.project.MavenProject getProject()
           
protected  void init()
           
 boolean isVerbose()
           
protected  void printConfig()
           
 void setProject(org.apache.maven.project.MavenProject project)
           
 void setVerbose(boolean verbose)
           
 
Methods inherited from class org.nuiton.plugin.AbstractPlugin
acceptPackaging, addCompileSourceRoots, addDirectoryToUrlsList, addResourceDir, addResourceDir, addTestCompileSourceRoots, addTestResourceDir, addTestResourceDir, addUrlToUrlsList, afterExecute, backupFile, checkPackaging, checkResource, checkRunOnceDone, copyFile, createDirectoryIfNecessary, createNewFile, deleteFile, execute, getBackupFile, 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

project

protected org.apache.maven.project.MavenProject project
Dependance du projet.

Since:
1.0.0
Is defined by:
default-value:
${project}
Is required.

srcDir

protected File srcDir
Répertoire source

Since:
0.10
Is defined by:
expression:
${processor.srcDir}
default-value:
${basedir}/src/main/java

destDir

protected File destDir
Répertoire cible

Since:
0.10
Is defined by:
expression:
${processor.destDir}
default-value:
${basedir}/target/processed-sources/java

includes

protected String includes
Fichiers à inclure.

Il s'agit des expressions séparées par des virgules.

Exemple :

*.java,*.xml

Since:
0.10
Is defined by:
expression:
${processor.includes}

excludes

protected String excludes
Fichiers à exclure.

Il s'agit des expressions spérarées par des virgules.

Exemple :

*.java,*.xml

Since:
0.10
Is defined by:
expression:
${processor.excludes}

fileInPattern

protected String fileInPattern
???

Since:
0.10
Is defined by:
expression:
${processor.fileInPattern}
default-value:

fileOutPattern

protected String fileOutPattern
Since:
0.10
Is defined by:
expression:
${processor.fileOutPattern}
default-value:

filters

protected String filters
Les filtres a utiliser par le processor, séparés par des virgules

Since:
0.10
Is defined by:
expression:
${processor.filters}
default-value:
org.nuiton.processor.filters.NoActionFilter

overwrite

protected boolean overwrite
Ecrase les fichiers générés

Since:
0.10
Is defined by:
expression:
${processor.overwrite}
default-value:
false

verbose

protected boolean verbose
Permet d'obtenir plus d'information

Since:
0.10
Is defined by:
expression:
${processor.verbose}
default-value:
${maven.verbose}

testPhase

protected boolean testPhase
Pour utiliser en phase de test

Since:
1.0.3
Is defined by:
expression:
${processor.testPhase}
default-value:
false

filesToTreate

protected Map<String,String> filesToTreate
Les fichiers à traiter

Constructor Detail

ProcessorPlugin

public ProcessorPlugin()
Method Detail

isVerbose

public boolean isVerbose()

setVerbose

public void setVerbose(boolean verbose)

getProject

public org.apache.maven.project.MavenProject getProject()

setProject

public void setProject(org.apache.maven.project.MavenProject project)

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()


Copyright © 2006-2010 CodeLutin. All Rights Reserved.