@Mojo(name="process",
requiresProject=true)
public class ProcessorPlugin
extends org.nuiton.plugin.AbstractPlugin
implements org.nuiton.plugin.PluginWithEncoding
| Modifier and Type | Field and Description |
|---|---|
protected File |
destDir
Répertoire cible.
|
protected String |
excludes
Fichiers à exclure.
|
protected String |
fileInPattern
TODO
|
protected String |
fileOutPattern
TODO
|
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.
|
| Constructor and Description |
|---|
ProcessorPlugin() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkSkip() |
protected void |
doAction() |
String |
getEncoding() |
org.apache.maven.project.MavenProject |
getProject() |
protected void |
init() |
boolean |
isVerbose() |
protected void |
printConfig() |
void |
setEncoding(String encoding) |
void |
setProject(org.apache.maven.project.MavenProject project) |
void |
setVerbose(boolean verbose) |
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, writeFilegetLog, getPluginContext, setLog, setPluginContext@Component protected org.apache.maven.project.MavenProject project
@Parameter(property="processor.srcDir",
defaultValue="${basedir}/src/main/java")
protected File srcDir
@Parameter(property="processor.destDir",
defaultValue="${basedir}/target/processed-sources/java")
protected File destDir
@Parameter(property="processor.includes") protected String includes
@Parameter(property="processor.excludes") protected String excludes
@Parameter(property="processor.fileInPattern",
defaultValue="")
protected String fileInPattern
@Parameter(property="processor.fileOutPattern",
defaultValue="")
protected String fileOutPattern
@Parameter(property="processor.filters",
defaultValue="org.nuiton.processor.filters.NoActionFilter")
protected String filters
@Parameter(property="processor.overwrite",
defaultValue="false")
protected boolean overwrite
@Parameter(property="processor.verbose",
defaultValue="${maven.verbose}")
protected boolean verbose
@Parameter(property="processor.testPhase",
defaultValue="false")
protected boolean testPhase
public boolean isVerbose()
isVerbose in interface org.nuiton.plugin.Pluginpublic void setVerbose(boolean verbose)
setVerbose in interface org.nuiton.plugin.Pluginpublic org.apache.maven.project.MavenProject getProject()
getProject in interface org.nuiton.plugin.Pluginpublic void setProject(org.apache.maven.project.MavenProject project)
setProject in interface org.nuiton.plugin.Pluginpublic final String getEncoding()
getEncoding in interface org.nuiton.plugin.PluginWithEncodingpublic final void setEncoding(String encoding)
setEncoding in interface org.nuiton.plugin.PluginWithEncodingprotected void init()
throws Exception
init in class org.nuiton.plugin.AbstractPluginExceptionprotected boolean checkSkip()
checkSkip in class org.nuiton.plugin.AbstractPluginprotected void doAction()
throws Exception
doAction in class org.nuiton.plugin.AbstractPluginExceptionprotected void printConfig()
Copyright © 2006–2015 CodeLutin. All rights reserved.