public abstract class AbstractJRubyMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
protected String |
args
common arguments
Command line -Dargs=... |
protected org.codehaus.classworlds.ClassRealm |
classRealm
classrealm for internal use.
|
protected static String |
DEFAULT_JRUBY_VERSION |
protected Map<String,String> |
env
environment values passed on to the jruby process.
|
protected ScriptFactory |
factory |
protected static String |
JRUBY_COMPLETE |
protected static String |
JRUBY_CORE |
protected static String |
JRUBY_STDLIB |
protected boolean |
jrubyFork
fork the JRuby execution.
|
protected String |
jrubyJvmArgs
jvm arguments for the java command executing jruby
Command line -Djruby.jvmargs=... |
protected String |
jrubySwitches
switches for the jruby command, like '--1.9'
Command line -Djruby.switches=... |
protected boolean |
jrubyVerbose
verbose jruby related output
Command line -Djruby.verbose=... |
protected File |
libDirectory
directory with ruby sources - added to ruby loadpath only
Command line -Djruby.lib=... |
protected org.apache.maven.artifact.repository.ArtifactRepository |
localRepository
local repository for internal use.
|
protected Logger |
logger |
protected org.apache.maven.project.MavenProject |
project
reference to maven project for internal use.
|
protected org.apache.maven.repository.RepositorySystem |
repositorySystem |
protected File |
rubySourceDirectory
directory with ruby sources - added to java classpath and ruby loadpath
Command line -Djruby.sourceDirectory=... |
| Constructor and Description |
|---|
AbstractJRubyMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
protected abstract void |
executeJRuby() |
protected JRubyVersion |
getJrubyVersion() |
protected File |
launchDirectory() |
protected ScriptFactory |
newScriptFactory(org.apache.maven.artifact.Artifact artifact) |
protected org.apache.maven.artifact.Artifact |
resolveJRubyArtifact() |
protected org.apache.maven.artifact.Artifact |
resolveJRubyCompleteArtifact(String version) |
protected org.apache.maven.artifact.Artifact |
resolveJRubyStdlibArtifact(org.apache.maven.artifact.Artifact jruby) |
protected static final String JRUBY_COMPLETE
protected static final String JRUBY_CORE
protected static final String JRUBY_STDLIB
protected static final String DEFAULT_JRUBY_VERSION
protected String args
protected String jrubyJvmArgs
protected String jrubySwitches
protected Map<String,String> env
protected boolean jrubyFork
protected boolean jrubyVerbose
protected File rubySourceDirectory
protected File libDirectory
protected org.apache.maven.project.MavenProject project
protected org.apache.maven.artifact.repository.ArtifactRepository localRepository
protected org.codehaus.classworlds.ClassRealm classRealm
protected org.apache.maven.repository.RepositorySystem repositorySystem
protected Logger logger
protected ScriptFactory factory
protected JRubyVersion getJrubyVersion()
protected ScriptFactory newScriptFactory(org.apache.maven.artifact.Artifact artifact) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionpublic void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected abstract void executeJRuby()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException,
IOException,
ScriptException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionIOExceptionScriptExceptionprotected File launchDirectory()
protected org.apache.maven.artifact.Artifact resolveJRubyCompleteArtifact(String version) throws org.apache.maven.artifact.DependencyResolutionRequiredException
org.apache.maven.artifact.DependencyResolutionRequiredExceptionprotected org.apache.maven.artifact.Artifact resolveJRubyArtifact()
throws org.apache.maven.artifact.DependencyResolutionRequiredException,
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.artifact.DependencyResolutionRequiredExceptionorg.apache.maven.plugin.MojoExecutionExceptionprotected org.apache.maven.artifact.Artifact resolveJRubyStdlibArtifact(org.apache.maven.artifact.Artifact jruby)
throws org.apache.maven.artifact.DependencyResolutionRequiredException,
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.artifact.DependencyResolutionRequiredExceptionorg.apache.maven.plugin.MojoExecutionExceptionCopyright © 2013. All Rights Reserved.