|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.pluginsupport.MojoSupport
org.codehaus.mojo.pluginsupport.ant.AntMojoSupport
org.codehaus.mojo.pluginsupport.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 java.io.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 java.lang.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 java.util.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.codehaus.mojo.pluginsupport.ant.AntMojoSupport |
---|
ant |
Fields inherited from class org.codehaus.mojo.pluginsupport.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,
java.lang.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 java.lang.String |
getClassName()
|
protected java.io.File |
getLogFile()
|
protected org.apache.maven.artifact.Artifact |
getPluginArtifact(java.lang.String name)
|
protected abstract java.lang.String |
getProcessName()
|
protected java.lang.String |
getProcessTitle()
|
protected org.apache.maven.project.MavenProject |
getProject()
Get the Maven project. |
protected java.io.File |
getWorkingDirectory()
|
protected abstract void |
setClassPath(org.apache.tools.ant.types.Path classpath)
|
protected boolean |
verifyProcessStarted()
|
Methods inherited from class org.codehaus.mojo.pluginsupport.ant.AntMojoSupport |
---|
createFileSet, createTask, inheritProperties, init, initAntLogger, mkdir, setProperty, setSystemProperty, setSystemProperty |
Methods inherited from class org.codehaus.mojo.pluginsupport.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 java.io.File baseWorkingDirectory
protected boolean logOutput
protected boolean background
protected int timeout
protected OptionSet[] optionSets
protected java.lang.String options
protected java.util.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 java.lang.Exception
MojoSupport
doExecute
in class MojoSupport
java.lang.Exception
- Execution failedprotected org.apache.maven.artifact.Artifact getPluginArtifact(java.lang.String name) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected void appendArtifactFile(org.apache.tools.ant.types.Path classpath, java.lang.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 java.lang.String getProcessName()
protected java.lang.String getProcessTitle()
protected java.io.File getWorkingDirectory()
protected java.io.File getLogFile()
protected abstract java.lang.String getClassName()
protected abstract void setClassPath(org.apache.tools.ant.types.Path classpath) throws java.lang.Exception
java.lang.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 java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |