|
||||||||||
| 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.InitState, org.nuiton.plugin.Plugin.Packaging |
| Field Summary | |
|---|---|
protected String |
copyVersionDir
Le dossier de destination des fichiers copiés. |
protected String |
copyVersionFiles
Les mappings a sauvegarder |
protected org.nuiton.plugin.PluginIOContext |
copyVersionResources
Les entrées sorties du plugin. |
protected File |
fVersionDir
Dossier incluant le nom de la version |
protected String |
includes
Fichiers objectModel a lire pour determiner la version. |
protected String |
modelNameFound
Nom du model sauvegarde |
protected 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 interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
CopyVersionFiles()
|
|
| Method Summary | |
|---|---|
boolean |
accept(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, addResourceDir, addTestCompileSourceRoots, addTestResourceDir, addTestResourceDir, addUrlToUrlsList, afterExecute, backupFile, checkPackaging, checkResource, checkRunOnceDone, checkSkip, 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 |
|---|
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 String includes
protected String copyVersionDir
protected String copyVersionFiles
protected String versionFound
protected String modelNameFound
protected File fVersionDir
| Constructor Detail |
|---|
public CopyVersionFiles()
| Method Detail |
|---|
public void doAction()
throws Exception
doAction in class org.nuiton.plugin.AbstractPluginExceptionprotected 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(File arg0)
accept in interface FileFilter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||