|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.nuiton.plugin.AbstractPlugin
org.nuiton.eugene.plugin.EugeneAbstractMojo
public abstract class EugeneAbstractMojo
La classe de base pour definir des mojos dans eugene.
| 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 String |
encoding
Encoding to be used for generation of files. |
protected boolean |
overwrite
Ecrase les fichiers générés. |
protected org.apache.maven.project.MavenProject |
project
Maven project. |
protected org.apache.maven.settings.Settings |
settings
Le settings (pour obtenir le mode offline). |
protected boolean |
testPhase
A flag to mark the mojo to be used in a test phase. |
protected boolean |
verbose
Pour activer le mode verbeux. |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
EugeneAbstractMojo()
|
|
| Method Summary | |
|---|---|
org.apache.maven.project.MavenProject |
getProject()
|
protected abstract org.nuiton.plugin.PluginIOContext |
getResources()
Note : l'objet peut etre null si la configuration ne definit
pas la propriété associées dans l'implentation. |
protected void |
init()
|
protected abstract org.nuiton.plugin.PluginIOContext |
initResources()
Initialiser les io du plugins. |
protected org.nuiton.plugin.PluginIOContext |
initResources(File defaultIn,
File defaultOut,
File defaultTestIn,
File defaultTestOut)
Build the getResources() data. |
boolean |
isVerbose()
|
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, checkSkip, copyFile, createDirectoryIfNecessary, createNewFile, deleteFile, doAction, 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 |
|---|
protected org.apache.maven.project.MavenProject project
protected org.apache.maven.settings.Settings settings
protected boolean overwrite
protected boolean verbose
protected String encoding
protected boolean testPhase
| Constructor Detail |
|---|
public EugeneAbstractMojo()
| Method Detail |
|---|
protected abstract org.nuiton.plugin.PluginIOContext getResources()
null si la configuration ne definit
pas la propriété associées dans l'implentation.
Dans tous les cas, une fois la methode initResources() appele,
l'objet devrait ne plus être null!
null si non initialiséprotected abstract org.nuiton.plugin.PluginIOContext initResources()
protected org.nuiton.plugin.PluginIOContext initResources(File defaultIn,
File defaultOut,
File defaultTestIn,
File defaultTestOut)
getResources() data.
defaultIn - the default input directorydefaultOut - the default output directorydefaultTestIn - the default test input directorydefaultTestOut - the default test output directory
PluginIOContext to use in the goal
protected void init()
throws Exception
init in class org.nuiton.plugin.AbstractPluginExceptionpublic org.apache.maven.project.MavenProject getProject()
public boolean isVerbose()
public void setProject(org.apache.maven.project.MavenProject project)
public void setVerbose(boolean verbose)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||