public abstract class JavaLauncherMojoSupport extends AntMojoSupport
Modifier and Type | Field and Description |
---|---|
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.
|
ant
container, log
Constructor and Description |
---|
JavaLauncherMojoSupport() |
Modifier and Type | Method and Description |
---|---|
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() |
createFileSet, createTask, inheritProperties, init, initAntLogger, mkdir, setProperty, setSystemProperty, setSystemProperty
contextualize, createArtifact, execute, getArtifact, getArtifactFactory, getArtifactResolver, getProjectArtifacts, getProjectArtifacts, getProjectArtifacts, resolveArtifact, resolveArtifact
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
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
Copyright © 2012 Codehaus. All Rights Reserved.