de.saumya.mojo.jruby
Class CompileMojo

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

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 Summary
protected  File generatedJavaDirectory
          where the java files (needs >=jruby-1.5).
protected  boolean generateJava
          just generate java classes and add them to the maven source path
Command line -Djrubyc.generateJava=...
protected  boolean ignoreFailures
          do not fail the goal
Command line -Djrubyc.ignoreFailure=...
protected  File outputDirectory
          where the compiled class files are written unless you choose to generate java classes (needs >=jruby-1.5).
protected  File rubyDirectory
          Deprecated. 
 
Fields inherited from class de.saumya.mojo.jruby.AbstractJRubyMojo
args, classRealm, DEFAULT_JRUBY_VERSION, factory, JRUBY_COMPLETE, JRUBY_CORE, JRUBY_STDLIB, jrubyFork, jrubyJvmArgs, jrubySwitches, jrubyVerbose, jrubyVersion, libDirectory, localRepository, logger, project, repositorySystem, rubySourceDirectory
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
CompileMojo()
           
 
Method Summary
 void executeJRuby()
           
 
Methods inherited from class de.saumya.mojo.jruby.AbstractJRubyMojo
execute, launchDirectory, newScriptFactory, newScriptFactory, resolveJRubyArtifact, resolveJRubyCompleteArtifact, retrieveStdlibArtifact
 
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

rubyDirectory

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


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

protected boolean ignoreFailures
do not fail the goal
Command line -Djrubyc.ignoreFailure=...


generateJava

protected boolean generateJava
just generate java classes and add them to the maven source path
Command line -Djrubyc.generateJava=...


generatedJavaDirectory

protected File generatedJavaDirectory
where the java files (needs >=jruby-1.5).

Constructor Detail

CompileMojo

public CompileMojo()
Method Detail

executeJRuby

public void executeJRuby()
                  throws org.apache.maven.plugin.MojoExecutionException,
                         IOException,
                         ScriptException
Specified by:
executeJRuby in class AbstractJRubyMojo
Throws:
org.apache.maven.plugin.MojoExecutionException
IOException
ScriptException


Copyright © 2012. All Rights Reserved.