org.codehaus.mojo.exec
Class ExecMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.mojo.exec.AbstractExecMojo
          extended by org.codehaus.mojo.exec.ExecMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class ExecMojo
extends AbstractExecMojo

A Plugin for executing external programs.

Version:
$Id: ExecMojo.java 6813 2008-04-21 20:21:44Z lacostej $
Author:
Jerome Lacoste

Field Summary
static 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.
 
Fields inherited from class org.codehaus.mojo.exec.AbstractExecMojo
project
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
ExecMojo()
           
 
Method Summary
 void execute()
          priority in the execute method will be to use System properties arguments over the pom specification.
protected  int executeCommandLine(org.codehaus.plexus.util.cli.Commandline commandLine, org.codehaus.plexus.util.cli.StreamConsumer stream1, org.codehaus.plexus.util.cli.StreamConsumer stream2)
           
protected  String getSystemProperty(String key)
           
 
Methods inherited from class org.codehaus.mojo.exec.AbstractExecMojo
hasCommandlineArgs, parseCommandlineArgs, registerSourceRoots
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.

See Also:
Constant Field Values
Constructor Detail

ExecMojo

public ExecMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException
priority in the execute method will be to use System properties arguments over the pom specification.

Throws:
org.apache.maven.plugin.MojoExecutionException

executeCommandLine

protected int executeCommandLine(org.codehaus.plexus.util.cli.Commandline commandLine,
                                 org.codehaus.plexus.util.cli.StreamConsumer stream1,
                                 org.codehaus.plexus.util.cli.StreamConsumer stream2)
                          throws org.codehaus.plexus.util.cli.CommandLineException
Throws:
org.codehaus.plexus.util.cli.CommandLineException

getSystemProperty

protected String getSystemProperty(String key)


Copyright © 2005-2011 Codehaus. All Rights Reserved.