org.codehaus.mojo.exec

Class ExecMojo

public class ExecMojo extends AbstractExecMojo

A Plugin for executing external programs.

Since: 1.0

Version: $Id: ExecMojo.java 6937 2008-05-10 08:35:36Z lacostej $

Author: Jerome Lacoste

UNKNOWN: exec test

Field Summary
static StringCLASSPATH_TOKEN
if exec.args expression is used when invokign the exec:exec goal, any occurence of %classpath argument is replaced by the actual project dependency classpath.
Method Summary
voidexecute()
priority in the execute method will be to use System properties arguments over the pom specification.
protected intexecuteCommandLine(Commandline commandLine, StreamConsumer stream1, StreamConsumer stream2)
protected StringgetSystemProperty(String key)

Field Detail

CLASSPATH_TOKEN

public static final String CLASSPATH_TOKEN
if exec.args expression is used when invokign the exec:exec goal, any occurence of %classpath argument is replaced by the actual project dependency classpath.

Method Detail

execute

public void execute()
priority in the execute method will be to use System properties arguments over the pom specification.

Throws: MojoExecutionException if a failure happens

executeCommandLine

protected int executeCommandLine(Commandline commandLine, StreamConsumer stream1, StreamConsumer stream2)

getSystemProperty

protected String getSystemProperty(String key)
Copyright © 2005-2009 Codehaus. All Rights Reserved.