@Mojo(name="exec",
threadSafe=true,
requiresDependencyResolution=TEST)
public class ExecMojo
extends AbstractExecMojo
| Modifier and Type | Field | Description |
|---|---|---|
static String |
CLASSPATH_TOKEN |
|
static String |
MODULEPATH_TOKEN |
classpathScope, executableDependency, project| Constructor | Description |
|---|---|
ExecMojo() |
| Modifier and Type | Method | Description |
|---|---|---|
protected Map<String,String> |
createEnvs(File envScriptFile) |
|
protected File |
createEnvWrapperFile(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,
Map<String,String> enviro,
FileOutputStream outputFile) |
|
protected int |
executeCommandLine(org.apache.commons.exec.Executor exec,
org.apache.commons.exec.CommandLine commandLine,
Map<String,String> enviro,
OutputStream out,
OutputStream err) |
|
protected int |
executeCommandLine(org.apache.commons.exec.Executor exec,
org.apache.commons.exec.CommandLine commandLine,
Map<String,String> enviro,
org.apache.commons.exec.PumpStreamHandler psh) |
|
protected org.apache.commons.exec.ProcessDestroyer |
getProcessDestroyer() |
|
int[] |
getSuccessCodes() |
|
protected String |
getSystemProperty(String key) |
|
void |
setSuccessCodes(Integer... list) |
collectProjectArtifactsAndClasspath, findExecutableArtifact, hasCommandlineArgs, isSkip, parseCommandlineArgs, registerSourceRootspublic static final String CLASSPATH_TOKEN
public static final 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,
Map<String,String> enviro,
OutputStream out,
OutputStream err)
throws org.apache.commons.exec.ExecuteException,
IOException
org.apache.commons.exec.ExecuteExceptionIOExceptionprotected int executeCommandLine(org.apache.commons.exec.Executor exec,
org.apache.commons.exec.CommandLine commandLine,
Map<String,String> enviro,
FileOutputStream outputFile)
throws org.apache.commons.exec.ExecuteException,
IOException
org.apache.commons.exec.ExecuteExceptionIOExceptionprotected int executeCommandLine(org.apache.commons.exec.Executor exec,
org.apache.commons.exec.CommandLine commandLine,
Map<String,String> enviro,
org.apache.commons.exec.PumpStreamHandler psh)
throws org.apache.commons.exec.ExecuteException,
IOException
org.apache.commons.exec.ExecuteExceptionIOExceptionpublic void setSuccessCodes(Integer... list)
public int[] getSuccessCodes()
protected Map<String,String> createEnvs(File envScriptFile) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected File createEnvWrapperFile(File envScript) throws IOException
IOExceptionprotected org.apache.commons.exec.ProcessDestroyer getProcessDestroyer()
Copyright © 2005–2019 MojoHaus. All rights reserved.