|
|||||||||
| 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.eugene.plugin.EugeneAbstractMojo
org.nuiton.eugene.plugin.CopyVersionFiles
public class CopyVersionFiles
Copy a file set to a versionned directory structure.
| 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.util.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 org.apache.maven.plugin.logging.Log |
logger
Maven logger |
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 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 |
execute()
|
protected void |
findVersionAndModelName()
Find version and name in object model files |
protected org.nuiton.util.PluginIOContext |
getResources()
Note : l'objet peut etre si la configuration ne definit pas la propriété associées dans l'implentation. |
protected org.nuiton.util.PluginIOContext |
initResources()
Initialiser les io du plugins. |
| Methods inherited from class org.nuiton.eugene.plugin.EugeneAbstractMojo |
|---|
addUrl, getFile, initResources |
| 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 |
| Field Detail |
|---|
protected org.nuiton.util.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 org.apache.maven.plugin.logging.Log logger
protected java.io.File fVersionDir
| Constructor Detail |
|---|
public CopyVersionFiles()
| Method Detail |
|---|
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
execute in interface org.apache.maven.plugin.Mojoexecute in class EugeneAbstractMojoorg.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureExceptionprotected org.nuiton.util.PluginIOContext getResources()
EugeneAbstractMojoEugeneAbstractMojo.initResources() appele,
l'objet devrait ne plus être null!
getResources in class EugeneAbstractMojonull si non initialiséprotected org.nuiton.util.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 | ||||||||