|
|||||||||
| 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
org.nuiton.eugene.plugin.CopyVersionFiles
public class CopyVersionFiles
Copy a file set to a versionned directory structure.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.nuiton.plugin.Plugin |
|---|
org.nuiton.plugin.Plugin.Packaging |
| Field Summary | |
|---|---|
protected java.lang.String |
copyVersionDir
Le dossier de destination des fichiers copiés. |
protected java.lang.String |
copyVersionFiles
Les mappings a sauvegarder |
protected org.nuiton.plugin.PluginIOContext |
copyVersionResources
Les entrées sorties du plugin. |
protected java.io.File |
fVersionDir
Dossier incluant le nom de la version |
protected java.lang.String |
includes
Fichiers objectModel a lire pour determiner la version. |
protected java.lang.String |
modelNameFound
Nom du model sauvegarde |
protected java.lang.String |
versionFound
Version trouvee dans les fichiers objectModel. |
| Fields inherited from class org.nuiton.eugene.plugin.EugeneAbstractMojo |
|---|
encoding, 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 | |
|---|---|
CopyVersionFiles()
|
|
| Method Summary | |
|---|---|
boolean |
accept(java.io.File arg0)
|
protected boolean |
checkExistence()
Check if previous saved files are already present |
void |
doAction()
|
protected void |
findVersionAndModelName()
Find version and name in object model files |
protected 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 org.nuiton.plugin.PluginIOContext |
initResources()
Initialiser les io du plugins. |
| Methods inherited from class org.nuiton.eugene.plugin.EugeneAbstractMojo |
|---|
getProject, init, initResources, isVerbose, setProject, 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.apache.maven.plugin.Mojo |
|---|
getLog, setLog |
| Field Detail |
|---|
protected org.nuiton.plugin.PluginIOContext copyVersionResources
<copyVersionResources> <input>target/generated-sources/models</input> <output>target/generated-sources/java</output> </copyVersionResources>Note: si
EugeneAbstractMojo.testPhase est activée, les valeurs par défaut sont :
<copyVersionResources> <input>target/generated-sources/test-models</input> <output>target/generated-sources/test-java</output> </copyVersionResources>
protected java.lang.String includes
protected java.lang.String copyVersionDir
protected java.lang.String copyVersionFiles
protected java.lang.String versionFound
protected java.lang.String modelNameFound
protected java.io.File fVersionDir
| Constructor Detail |
|---|
public CopyVersionFiles()
| Method Detail |
|---|
public void doAction()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
doAction in class org.nuiton.plugin.AbstractPluginorg.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureExceptionprotected org.nuiton.plugin.PluginIOContext getResources()
EugeneAbstractMojonull si la configuration ne definit
pas la propriété associées dans l'implentation.
Dans tous les cas, une fois la methode EugeneAbstractMojo.initResources() appele,
l'objet devrait ne plus être null!
getResources in class EugeneAbstractMojonull si non initialiséprotected org.nuiton.plugin.PluginIOContext initResources()
EugeneAbstractMojo
initResources in class EugeneAbstractMojoprotected boolean checkExistence()
true if already present,false otherwise.protected void findVersionAndModelName()
public boolean accept(java.io.File arg0)
accept in interface java.io.FileFilter
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||