@Mojo(name="exec", threadSafe=true, requiresDependencyResolution=TEST) public class ExecMojo extends AbstractExecMojo
Modifier and Type | Field and Description |
---|---|
static String |
CLASSPATH_TOKEN |
static String |
MODULEPATH_TOKEN |
classpathScope, executableDependency, project
Constructor and Description |
---|
ExecMojo() |
Modifier and Type | Method and 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, registerSourceRoots
public 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.ExecuteException
IOException
protected 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.ExecuteException
IOException
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) throws org.apache.commons.exec.ExecuteException, IOException
org.apache.commons.exec.ExecuteException
IOException
public void setSuccessCodes(Integer... list)
public int[] getSuccessCodes()
protected Map<String,String> createEnvs(File envScriptFile) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected File createEnvWrapperFile(File envScript) throws IOException
IOException
protected org.apache.commons.exec.ProcessDestroyer getProcessDestroyer()
Copyright © 2005–2019 MojoHaus. All rights reserved.