|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
de.saumya.mojo.jruby.AbstractJRubyMojo
public abstract class AbstractJRubyMojo
Base for all JRuby mojos.
| Field Summary | |
|---|---|
protected String |
args
common arguments |
protected org.apache.maven.artifact.factory.ArtifactFactory |
artifactFactory
artifact factory for internal use. |
protected org.apache.maven.project.MavenProjectBuilder |
builder
|
protected org.codehaus.classworlds.ClassRealm |
classRealm
classrealm for internal use. |
protected ScriptFactory |
factory
|
static String |
GEM_RUBY_COMMAND
|
static String |
IRB_RUBY_COMMAND
|
static String |
IRB_SWING_RUBY_COMMAND
|
protected String |
jrubyArgs
arguments for the jruby command. |
protected boolean |
jrubyFork
fork the JRuby execution. |
protected File |
jrubyGemHome
Deprecated. |
protected File |
jrubyGemPath
Deprecated. |
protected boolean |
jrubyVerbose
verbose jruby related output |
protected String |
jrubyVersion
if the pom.xml has no runtime dependency to a jruby-complete.jar then this version is used to resolve the jruby-complete dependency from the local/remote maven repository. |
protected org.apache.maven.artifact.repository.ArtifactRepository |
localRepository
local repository for internal use. |
protected Logger |
logger
|
protected org.apache.maven.artifact.metadata.ArtifactMetadataSource |
metadata
|
protected org.apache.maven.project.MavenProject |
project
reference to maven project for internal use. |
static String |
RAKE_RUBY_COMMAND
|
protected org.apache.maven.artifact.resolver.ArtifactResolver |
resolver
artifact resolver for internal use. |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
AbstractJRubyMojo()
|
|
| Method Summary | |
|---|---|
void |
execute()
|
protected abstract void |
executeJRuby()
|
protected File |
launchDirectory()
|
protected ScriptFactory |
newScriptFactory()
|
protected void |
preExecute()
|
protected org.apache.maven.artifact.Artifact |
resolveJRUBYCompleteArtifact()
|
protected void |
resolveTransitively(Collection<org.apache.maven.artifact.Artifact> artifacts,
org.apache.maven.artifact.Artifact artifact)
|
| 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 |
|---|
public static final String GEM_RUBY_COMMAND
public static final String IRB_RUBY_COMMAND
public static final String IRB_SWING_RUBY_COMMAND
public static final String RAKE_RUBY_COMMAND
protected String args
protected String jrubyArgs
protected String jrubyVersion
protected boolean jrubyFork
protected boolean jrubyVerbose
@Deprecated protected File jrubyGemHome
@Deprecated protected File jrubyGemPath
protected org.apache.maven.project.MavenProject project
protected org.apache.maven.artifact.factory.ArtifactFactory artifactFactory
protected org.apache.maven.artifact.resolver.ArtifactResolver resolver
protected org.apache.maven.artifact.repository.ArtifactRepository localRepository
protected org.codehaus.classworlds.ClassRealm classRealm
protected org.apache.maven.artifact.metadata.ArtifactMetadataSource metadata
protected org.apache.maven.project.MavenProjectBuilder builder
protected Logger logger
protected ScriptFactory factory
| Constructor Detail |
|---|
public AbstractJRubyMojo()
| Method Detail |
|---|
protected ScriptFactory newScriptFactory()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected void preExecute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException,
IOException,
RubyScriptException,
GemException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
IOException
RubyScriptException
GemException
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,
RubyScriptException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
IOException
RubyScriptExceptionprotected File launchDirectory()
protected org.apache.maven.artifact.Artifact resolveJRUBYCompleteArtifact()
throws org.apache.maven.artifact.DependencyResolutionRequiredException,
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.artifact.DependencyResolutionRequiredException
org.apache.maven.plugin.MojoExecutionException
protected void resolveTransitively(Collection<org.apache.maven.artifact.Artifact> artifacts,
org.apache.maven.artifact.Artifact artifact)
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||