|
||||||||||
| 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.AbstractEugeneMojo
org.nuiton.eugene.plugin.GeneratateModelFilesMojo
public class GeneratateModelFilesMojo
User: chemit Date: 24 nov. 2009 Time: 00:22:37
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.nuiton.plugin.Plugin |
|---|
org.nuiton.plugin.Plugin.Packaging |
| Field Summary | |
|---|---|
protected java.util.Set<ModelFileWriter> |
availableWriters
All available writers for the given getModelClass() |
protected boolean |
dryRun
Ne génère rien, analyse juste la configuration. |
protected java.io.File |
extraClassPathDirectory
An extra directory to be added to the classpath. |
protected java.lang.String |
extractedPackages
Nom du paquetage à générer |
protected java.lang.String |
fullPackagePath
Nom du paquetage pour les fichiers générés |
protected java.lang.String[] |
includes
Inputs files to used to generate the required model files. |
protected java.io.File |
outputDirectory
Where to generate files. |
protected java.util.List<ModelFileWriter> |
plan
Writers to process |
protected java.util.Map<java.lang.String,java.lang.Object> |
properties
Properties to pass to writer. |
protected java.lang.String |
resolver
Nom du resolver a utiliser |
protected java.util.Map<java.lang.String,ModelFileWriter> |
writers
All available writers |
| Fields inherited from class org.nuiton.eugene.plugin.AbstractEugeneMojo |
|---|
_models, encoding, modelClass, modelType, overwrite, project, settings, testPhase, verbose |
| Fields inherited from class org.nuiton.plugin.AbstractPlugin |
|---|
skipAfterInitMessage |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
GeneratateModelFilesMojo()
|
|
| Method Summary | |
|---|---|
protected void |
doAction()
|
protected java.lang.ClassLoader |
fixClassLoader()
Prepare le classLoader a utiliser dans le generateur. |
java.util.Set<ModelFileWriter> |
getAvailableWriters()
|
java.io.File |
getBasedir()
|
java.lang.Class<? extends Model> |
getModelClass()
|
java.io.File |
getOutputDirectory()
|
java.util.Map<java.lang.String,java.lang.Object> |
getProperties()
|
protected boolean |
init()
|
| Methods inherited from class org.nuiton.eugene.plugin.AbstractEugeneMojo |
|---|
getEncoding, getProject, getSettings, isOffline, isOverwrite, isVerbose, setEncoding, setOverwrite, setProject, setSettings, setVerbose |
| Methods inherited from class org.nuiton.plugin.AbstractPlugin |
|---|
acceptPackaging, addCompileSourceRoots, addDirectoryToUrlsList, addResourceDir, addTestCompileSourceRoots, addTestResourceDir, addUrlToUrlsList, checkPackaging, checkResource, checkRunOnceDone, copyFile, execute, getFileFromBasedir, getFilesToTreate, getFilesToTreateForRoots, getTemplate, initClassLoader, isExecutionRoot, isFileNewerThanPomFile, rejectPackaging, removeCompileSourceRoots, removeTestCompileSourceRoots, 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.nuiton.eugene.ModelFileWriterConfiguration |
|---|
getEncoding, isOffline, isOverwrite, isVerbose |
| Methods inherited from interface org.apache.maven.plugin.Mojo |
|---|
getLog, setLog |
| Field Detail |
|---|
protected java.lang.String[] includes
writer:when you want to use a specific writer with his default io values. Can also write :
[writer:]directory:includeswhere
includes is the pattern to find files from the directory given and must be terminated by the extension
of files.
Specifying the writer can be usefull when you want to use a writer for an unknown extension
by any writer.
Example :
<includes>
<include>zargo:<include>
<include>src/main/xmi2:**\/*.zargo<include>
<include>zargo:src/main/xmi:**\/*.zargo2<include>
</includes>
protected java.io.File outputDirectory
protected java.util.Map<java.lang.String,java.lang.Object> properties
protected boolean dryRun
protected java.lang.String fullPackagePath
protected java.lang.String extractedPackages
protected java.lang.String resolver
protected java.io.File extraClassPathDirectory
protected java.util.Map<java.lang.String,ModelFileWriter> writers
protected java.util.Set<ModelFileWriter> availableWriters
getModelClass()
protected java.util.List<ModelFileWriter> plan
| Constructor Detail |
|---|
public GeneratateModelFilesMojo()
| Method Detail |
|---|
protected boolean init()
throws java.lang.Exception
init in class AbstractEugeneMojojava.lang.Exception
protected void doAction()
throws java.lang.Exception
doAction in class org.nuiton.plugin.AbstractPluginjava.lang.Exceptionpublic java.io.File getOutputDirectory()
getOutputDirectory in interface ModelFileWriterConfigurationpublic java.util.Map<java.lang.String,java.lang.Object> getProperties()
getProperties in interface ModelFileWriterConfigurationpublic java.util.Set<ModelFileWriter> getAvailableWriters()
getAvailableWriters in interface ModelFileWriterConfigurationpublic java.lang.Class<? extends Model> getModelClass()
getModelClass in interface ModelFileWriterConfigurationpublic java.io.File getBasedir()
getBasedir in interface ModelFileWriterConfiguration
protected java.lang.ClassLoader fixClassLoader()
throws org.apache.maven.plugin.MojoExecutionException
extraClassPathDirectory a été renseigné, il est rajouté.
Si des références à des sibling modules, ils seront rajoutés aussi.
org.apache.maven.plugin.MojoExecutionException - if any pb
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||