public abstract class AbstractJRubyMojo
extends org.apache.maven.plugin.AbstractMojo
Modifier and Type | Field and Description |
---|---|
protected boolean |
addProjectClasspath
add project class path to JVM classpath on executing jruby.
|
protected String |
args
common arguments
|
protected org.codehaus.classworlds.ClassRealm |
classRealm
classrealm for internal use.
|
protected static String |
DEFAULT_JRUBY_VERSION |
protected List<String> |
eclipseRefresh |
protected List<String> |
eclipseWatches |
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
|
protected String |
jrubySwitches
switches for the jruby command, like '--1.9'
|
protected boolean |
jrubyVerbose
verbose jruby related output
|
protected File |
libDirectory
directory with ruby sources - added to ruby loadpath only
|
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
|
Constructor and Description |
---|
AbstractJRubyMojo() |
Modifier and Type | Method and Description |
---|---|
void |
execute() |
protected abstract void |
executeJRuby() |
protected String |
getDefaultJRubyVersion() |
protected JRubyVersion |
getJrubyVersion() |
protected List<String> |
getProjectClasspath() |
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
@Parameter(property="args") protected String args
@Parameter(property="jruby.jvmargs") protected String jrubyJvmArgs
@Parameter(property="jruby.switches") protected String jrubySwitches
@Parameter(property="jruby.env") protected Map<String,String> env
@Parameter(property="jruby.fork", defaultValue="true") protected boolean jrubyFork
@Parameter(property="jruby.verbose", defaultValue="false") protected boolean jrubyVerbose
@Parameter(property="jruby.sourceDirectory", defaultValue="src/main/ruby") protected File rubySourceDirectory
@Parameter(property="jruby.lib", defaultValue="lib") protected File libDirectory
@Parameter(defaultValue="${project}", readonly=true) protected org.apache.maven.project.MavenProject project
@Parameter(defaultValue="true", property="jruby.addProjectClasspath") protected boolean addProjectClasspath
@Parameter(readonly=true, defaultValue="${localRepository}") protected org.apache.maven.artifact.repository.ArtifactRepository localRepository
@Parameter(readonly=true, defaultValue="${dummy}") protected org.codehaus.classworlds.ClassRealm classRealm
@Component protected org.apache.maven.repository.RepositorySystem repositorySystem
protected Logger logger
protected ScriptFactory factory
protected String getDefaultJRubyVersion()
protected JRubyVersion getJrubyVersion()
protected ScriptFactory newScriptFactory(org.apache.maven.artifact.Artifact artifact) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
protected abstract void executeJRuby() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException, IOException, ScriptException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
IOException
ScriptException
protected File launchDirectory()
protected org.apache.maven.artifact.Artifact resolveJRubyCompleteArtifact(String version) throws org.apache.maven.artifact.DependencyResolutionRequiredException
org.apache.maven.artifact.DependencyResolutionRequiredException
protected org.apache.maven.artifact.Artifact resolveJRubyArtifact() throws org.apache.maven.artifact.DependencyResolutionRequiredException, org.apache.maven.plugin.MojoExecutionException
org.apache.maven.artifact.DependencyResolutionRequiredException
org.apache.maven.plugin.MojoExecutionException
protected 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.DependencyResolutionRequiredException
org.apache.maven.plugin.MojoExecutionException
Copyright © 2017. All rights reserved.