Class ExecMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.glassfish.build.ExecMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="exec", requiresProject=true, requiresDependencyResolution=RUNTIME, defaultPhase=PROCESS_RESOURCES) public final class ExecMojo extends org.apache.maven.plugin.AbstractMojo
Execute a command.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    private class 
    BuilderListener implementation to log Ant events.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private String
    Command line argument.
    private String
    Executable to execute.
    private org.apache.maven.project.MavenProject
    The maven project.
    private File
    Working dir.

    Fields inherited from interface org.apache.maven.plugin.Mojo

    ROLE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     

    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 Details

    • project

      @Parameter(defaultValue="${project}", required=true, readonly=true) private org.apache.maven.project.MavenProject project
      The maven project.
    • executable

      @Parameter(property="executable") private String executable
      Executable to execute.
    • workingDir

      @Parameter(property="workingDir", defaultValue="${project.build.directory}") private File workingDir
      Working dir.
    • commandlineArgs

      @Parameter(property="commandlineArgs") private String commandlineArgs
      Command line argument.
  • Constructor Details

    • ExecMojo

      public ExecMojo()
  • Method Details

    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
      org.apache.maven.plugin.MojoFailureException