@Mojo(name="exec",
threadSafe=true,
requiresDependencyResolution=TEST)
public class ExecMojo
extends AbstractExecMojo
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASSPATH_TOKEN |
static java.lang.String |
MODULEPATH_TOKEN |
classpathScope, executableDependency, project| Constructor and Description |
|---|
ExecMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Map<java.lang.String,java.lang.String> |
createEnvs(java.io.File envScriptFile) |
protected java.io.File |
createEnvWrapperFile(java.io.File envScript) |
void |
execute()
priority in the execute method will be to use System properties arguments over the pom specification.
|
protected int |
executeCommandLine(org.apache.commons.exec.Executor exec,
org.apache.commons.exec.CommandLine commandLine,
java.util.Map<java.lang.String,java.lang.String> enviro,
java.io.FileOutputStream outputFile) |
protected int |
executeCommandLine(org.apache.commons.exec.Executor exec,
org.apache.commons.exec.CommandLine commandLine,
java.util.Map<java.lang.String,java.lang.String> enviro,
java.io.OutputStream out,
java.io.OutputStream err) |
protected int |
executeCommandLine(org.apache.commons.exec.Executor exec,
org.apache.commons.exec.CommandLine commandLine,
java.util.Map<java.lang.String,java.lang.String> enviro,
org.apache.commons.exec.PumpStreamHandler psh) |
protected org.apache.commons.exec.ProcessDestroyer |
getProcessDestroyer() |
int[] |
getSuccessCodes() |
protected java.lang.String |
getSystemProperty(java.lang.String key) |
void |
setSuccessCodes(java.lang.Integer... list) |
collectProjectArtifactsAndClasspath, findExecutableArtifact, getPluginDependencies, getSession, hasCommandlineArgs, isSkip, parseCommandlineArgs, registerSourceRootspublic static final java.lang.String CLASSPATH_TOKEN
public static final java.lang.String MODULEPATH_TOKEN
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException - if a failure happensprotected int executeCommandLine(org.apache.commons.exec.Executor exec,
org.apache.commons.exec.CommandLine commandLine,
java.util.Map<java.lang.String,java.lang.String> enviro,
java.io.OutputStream out,
java.io.OutputStream err)
throws java.io.IOException
java.io.IOExceptionprotected int executeCommandLine(org.apache.commons.exec.Executor exec,
org.apache.commons.exec.CommandLine commandLine,
java.util.Map<java.lang.String,java.lang.String> enviro,
java.io.FileOutputStream outputFile)
throws java.io.IOException
java.io.IOExceptionprotected int executeCommandLine(org.apache.commons.exec.Executor exec,
org.apache.commons.exec.CommandLine commandLine,
java.util.Map<java.lang.String,java.lang.String> enviro,
org.apache.commons.exec.PumpStreamHandler psh)
throws java.io.IOException
java.io.IOExceptionprotected java.lang.String getSystemProperty(java.lang.String key)
public void setSuccessCodes(java.lang.Integer... list)
public int[] getSuccessCodes()
protected java.util.Map<java.lang.String,java.lang.String> createEnvs(java.io.File envScriptFile)
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected java.io.File createEnvWrapperFile(java.io.File envScript)
throws java.io.IOException
java.io.IOExceptionprotected org.apache.commons.exec.ProcessDestroyer getProcessDestroyer()
Copyright © 2005–2023 MojoHaus. All rights reserved.