org.nuiton
Class RunJavaPlugin
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.nuiton.AbstractPlugin
org.nuiton.RunJavaPlugin
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
public class RunJavaPlugin
- extends AbstractPlugin
- Since:
- 1.0
- Author:
- chemit
|
Field Summary |
protected java.lang.String |
args
The class arguments. |
protected java.lang.ClassLoader |
cl
|
protected java.lang.Class<?> |
clazz
|
protected java.lang.String |
mainClass
The main class to execute. |
protected org.apache.maven.project.MavenProject |
project
Dependance du projet. |
protected boolean |
verbose
Un flag pour activer le mode verbeux. |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
| Methods inherited from class org.nuiton.AbstractPlugin |
addCompileSourceRoots, addResourceDir, addTestCompileSourceRoots, addTestResourceDir, checkResource, copyFile, copyFile, execute, getFilesToTreate, getFilesToTreateForRoots, getTemplate, initClassLoader, isFileNewerThanPomFile, 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 |
project
protected org.apache.maven.project.MavenProject project
- Dependance du projet.
- Since:
- 1.0.0
mainClass
protected java.lang.String mainClass
- The main class to execute.
- Since:
- 1.0
args
protected java.lang.String args
- The class arguments.
- Since:
- 1.0
verbose
protected boolean verbose
- Un flag pour activer le mode verbeux.
- Since:
- 1.0.0
clazz
protected java.lang.Class<?> clazz
cl
protected java.lang.ClassLoader cl
RunJavaPlugin
public RunJavaPlugin()
ensurePackaging
protected boolean ensurePackaging()
- Specified by:
ensurePackaging in class AbstractPlugin
init
protected boolean init()
throws java.lang.Exception
- Description copied from class:
AbstractPlugin
- la methode qui est lancee au debut de la methode
AbstractPlugin.execute() pour preparer l'init du goal.
- Specified by:
init in class AbstractPlugin
- Returns:
true if there is something to generate, false otherwise.
- Throws:
java.lang.Exception - if any
doAction
protected void doAction()
throws java.lang.Exception
- Description copied from class:
AbstractPlugin
- Do plugin action.
The method
AbstractPlugin.execute() invoke this method only and only if :
- Specified by:
doAction in class AbstractPlugin
- Throws:
java.lang.Exception - if any
getProject
public org.apache.maven.project.MavenProject getProject()
- Specified by:
getProject in class AbstractPlugin
setProject
public void setProject(org.apache.maven.project.MavenProject project)
- Specified by:
setProject in class AbstractPlugin
isVerbose
public boolean isVerbose()
- Specified by:
isVerbose in class AbstractPlugin
setVerbose
public void setVerbose(boolean verbose)
- Specified by:
setVerbose in class AbstractPlugin
Copyright © 2009 CodeLutin. All Rights Reserved.