Class CompileMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
de.saumya.mojo.jruby.AbstractJRubyMojo
de.saumya.mojo.jruby.CompileMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="compile", defaultPhase=COMPILE, requiresDependencyResolution=COMPILE, requiresProject=true) public class CompileMojo extends AbstractJRubyMojo
executes the compiles ruby classes to java bytecode (jrubyc).
NOTE: this goal uses only a small subset of the features of jrubyc.
  • Field Details

    • rubyDirectory

      @Deprecated @Parameter protected File rubyDirectory
      Deprecated.
      directory where to find the ruby files
    • outputDirectory

      @Parameter(property="project.build.outputDirectory", defaultValue="${project.build.outputDirectory}") protected File outputDirectory
      where the compiled class files are written unless you choose to generate java classes (needs >=jruby-1.5). default is the same as for java classes.
    • ignoreFailures

      @Parameter(property="jrubyc.ignoreFailure", defaultValue="false") protected boolean ignoreFailures
      do not fail the goal
    • generateJava

      @Parameter(property="jrubyc.generateJava", defaultValue="false") protected boolean generateJava
      just generate java classes and add them to the maven source path
    • generatedJavaDirectory

      @Parameter(defaultValue="${basedir}/target/jrubyc-generated-sources") protected File generatedJavaDirectory
      where the java files (needs >=jruby-1.5).
    • jrubycVerbose

      @Parameter(property="jrubyc.verbose", defaultValue="false") private boolean jrubycVerbose
      verbose jrubyc related output (only with > jruby-1.6.x)
  • Constructor Details

    • CompileMojo

      public CompileMojo()
  • Method Details