de.saumya.mojo.jruby
Class JRubyMojo

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

public class JRubyMojo
extends AbstractJRubyMojo

executes the jruby command.


Field Summary
protected  File file
          ruby file which gets executed.
protected  File gemHome
          directory of gem home to use when forking JRuby.
protected  File gemPath
          directory of JRuby path to use when forking JRuby.
protected  String jrubyArgs
          arguments for the jruby command.
protected  File outputFile
          output file where the standard out will be written
Command line -Djruby.outputFile=...
protected  String script
          ruby code which gets executed.
 
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
JRubyMojo()
           
 
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

jrubyArgs

protected String jrubyArgs
arguments for the jruby command.
Command line -Djruby.args=...


script

protected String script
ruby code which gets executed.
Command line -Djruby.script=...


file

protected File file
ruby file which gets executed.
Command line -Djruby.file=...


outputFile

protected File outputFile
output file where the standard out will be written
Command line -Djruby.outputFile=...


gemHome

protected File gemHome
directory of gem home to use when forking JRuby.
Command line -Dgem.home=...


gemPath

protected File gemPath
directory of JRuby path to use when forking JRuby.
Command line -Dgem.path=...

Constructor Detail

JRubyMojo

public JRubyMojo()
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.