Class ExecMojo

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

@Mojo(name="exec", defaultPhase=INITIALIZE, requiresDependencyResolution=TEST, requiresProject=false) public class ExecMojo extends AbstractGemMojo
executes a ruby script in context of the gems from pom. the arguments for jruby are build like this: ${jruby.args} ${exec.file} ${exec.args} ${args}
to execute an inline script the exec parameters are ignored.
  • Field Details

    • script

      @Parameter(property="exec.script") protected String script
      ruby code from the pom configuration part which gets executed.
    • file

      @Parameter(property="exec.file") protected File file
      ruby file which gets executed in context of the given gems..
    • filename

      @Parameter(property="exec.filename") protected String filename
      ruby file found on search path which gets executed. the search path includes the executable scripts which were installed via the given gem-artifacts.
    • outputFile

      @Parameter(property="exec.outputFile") protected File outputFile
      output file where the standard out will be written
    • execArgs

      @Parameter(property="exec.args") protected String execArgs
      arguments separated by whitespaces for the ruby script given through file parameter. no quoting or escaping possible - if needed use execArglines instead.
    • execArgLines

      @Parameter protected String[] execArgLines
      an array of arguments which can contain spaces for the ruby script given through file parameter.
  • Constructor Details

    • ExecMojo

      public ExecMojo()
  • Method Details