|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.plugin.AbstractMojo org.apache.geronimo.genesis.MojoSupport org.apache.geronimo.genesis.ant.AntMojoSupport org.apache.geronimo.genesis.ant.JavaLauncherMojoSupport
public abstract class JavaLauncherMojoSupport
Support for mojos that launch Java processes.
Field Summary | |
---|---|
protected org.apache.maven.artifact.repository.ArtifactRepository |
artifactRepository
|
protected boolean |
background
Flag to control if we background the process or block Maven execution. |
protected File |
baseWorkingDirectory
The base working directory where process will be started from, a sub-directory the process name will be used for the effective working directory. |
protected boolean |
logOutput
Enable logging mode. |
protected String |
options
A comma seperated list of optionSets to enabled. |
protected OptionSet[] |
optionSets
An array of option sets which can be enabled by setting options. |
protected Map |
pluginArtifactMap
Map of of plugin artifacts. |
protected org.apache.maven.project.MavenProject |
project
The maven project. |
protected int |
timeout
Timeout for the process in seconds. |
Fields inherited from class org.apache.geronimo.genesis.ant.AntMojoSupport |
---|
ant |
Fields inherited from class org.apache.geronimo.genesis.MojoSupport |
---|
container, log |
Fields inherited from interface org.apache.maven.plugin.Mojo |
---|
ROLE |
Constructor Summary | |
---|---|
JavaLauncherMojoSupport()
|
Method Summary | |
---|---|
protected void |
appendArtifact(org.apache.tools.ant.types.Path classpath,
org.apache.maven.artifact.Artifact artifact)
|
protected void |
appendArtifactFile(org.apache.tools.ant.types.Path classpath,
String name)
|
protected void |
customizeJava(org.apache.tools.ant.taskdefs.Java java)
|
protected void |
doExecute()
Sub-class should override to provide custom execution logic. |
protected org.apache.maven.artifact.repository.ArtifactRepository |
getArtifactRepository()
Get the artifact repository. |
protected abstract String |
getClassName()
|
protected File |
getLogFile()
|
protected org.apache.maven.artifact.Artifact |
getPluginArtifact(String name)
|
protected abstract String |
getProcessName()
|
protected String |
getProcessTitle()
|
protected org.apache.maven.project.MavenProject |
getProject()
Get the Maven project. |
protected File |
getWorkingDirectory()
|
protected abstract void |
setClassPath(org.apache.tools.ant.types.Path classpath)
|
protected boolean |
verifyProcessStarted()
|
Methods inherited from class org.apache.geronimo.genesis.ant.AntMojoSupport |
---|
createFileSet, createTask, inheritProperties, init, initAntLogger, mkdir, setProperty, setSystemProperty, setSystemProperty |
Methods inherited from class org.apache.geronimo.genesis.MojoSupport |
---|
contextualize, createArtifact, execute, getArtifact, getArtifactFactory, getArtifactResolver, getProjectArtifacts, getProjectArtifacts, getProjectArtifacts, resolveArtifact, resolveArtifact |
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 File baseWorkingDirectory
protected boolean logOutput
protected boolean background
protected int timeout
protected OptionSet[] optionSets
protected String options
protected Map pluginArtifactMap
protected org.apache.maven.project.MavenProject project
protected org.apache.maven.artifact.repository.ArtifactRepository artifactRepository
Constructor Detail |
---|
public JavaLauncherMojoSupport()
Method Detail |
---|
protected void doExecute() throws Exception
MojoSupport
doExecute
in class MojoSupport
Exception
- Execution failedprotected org.apache.maven.artifact.Artifact getPluginArtifact(String name) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected void appendArtifactFile(org.apache.tools.ant.types.Path classpath, String name) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected void appendArtifact(org.apache.tools.ant.types.Path classpath, org.apache.maven.artifact.Artifact artifact) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected org.apache.maven.project.MavenProject getProject()
MojoSupport
Sub-class must overridde to provide access.
getProject
in class MojoSupport
protected org.apache.maven.artifact.repository.ArtifactRepository getArtifactRepository()
MojoSupport
Sub-class must overridde to provide access.
getArtifactRepository
in class MojoSupport
protected abstract String getProcessName()
protected String getProcessTitle()
protected File getWorkingDirectory()
protected File getLogFile()
protected abstract String getClassName()
protected abstract void setClassPath(org.apache.tools.ant.types.Path classpath) throws Exception
Exception
protected void customizeJava(org.apache.tools.ant.taskdefs.Java java) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected boolean verifyProcessStarted() throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |