|
||||||||||
| 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 org.apache.maven.artifact.factory.ArtifactFactory |
artifactFactory
artifact factory for internal use. |
protected Set<org.apache.maven.artifact.Artifact> |
artifacts
The project's artifacts. |
protected org.apache.maven.project.MavenProjectBuilder |
builder
|
protected org.codehaus.classworlds.ClassRealm |
classRealm
classrealm for internal use. |
protected boolean |
fork
fork the JRuby execution. |
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 File |
home
directory of JRuby home to use when forking JRuby. |
protected File |
launchDirectory
the launch directory for the JRuby execution. |
protected String |
launchMemory
The amount of memory to use when forking JRuby. |
protected org.apache.maven.artifact.repository.ArtifactRepository |
localRepository
local repository for internal use. |
protected org.apache.maven.artifact.metadata.ArtifactMetadataSource |
metadata
|
protected File |
outputDirectory
output directory for internal use. |
protected File |
outputFile
output file where the stdout will be redirected to |
protected org.apache.maven.project.MavenProject |
project
reference to maven project for internal use. |
protected List<org.apache.maven.artifact.repository.ArtifactRepository> |
remoteRepositories
list of remote repositories for internal use. |
protected org.apache.maven.artifact.resolver.ArtifactResolver |
resolver
artifact resolver for internal use. |
protected boolean |
verbose
verbose jruby related output |
protected String |
version
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. |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
AbstractJRubyMojo()
|
|
| Method Summary | |
|---|---|
protected File |
binDirectory()
|
protected StringBuilder |
binScript(String script)
|
protected void |
execute(String args)
|
protected void |
execute(String[] args)
|
protected void |
execute(String[] args,
File outputFile)
|
protected void |
execute(String[] args,
File outputFile,
boolean resolveArtifacts)
|
protected void |
execute(String args,
boolean resolveArtifacts)
|
protected void |
execute(String args,
boolean resolveArtifacts,
Map<String,String> env)
|
protected void |
executeScript(File script,
String args,
boolean resolveArtifacts,
Map<String,String> env)
|
protected String |
fileFromClassloader(String file)
|
protected File |
launchDirectory()
|
protected org.apache.maven.artifact.Artifact |
resolveJRUBYCompleteArtifact()
|
protected void |
resolveTransitively(Collection<org.apache.maven.artifact.Artifact> artifacts,
org.apache.maven.artifact.Artifact artifact)
|
protected Map<String,String> |
setupEnv()
|
protected void |
setupEnv(Map<String,String> env)
|
| 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 |
| Methods inherited from interface org.apache.maven.plugin.Mojo |
|---|
execute |
| Field Detail |
|---|
protected boolean fork
protected boolean verbose
protected File launchDirectory
protected File home
protected File gemHome
protected File gemPath
protected String launchMemory
protected org.apache.maven.project.MavenProject project
protected Set<org.apache.maven.artifact.Artifact> artifacts
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 List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories
protected String version
protected File outputFile
protected File outputDirectory
protected org.codehaus.classworlds.ClassRealm classRealm
protected org.apache.maven.artifact.metadata.ArtifactMetadataSource metadata
protected org.apache.maven.project.MavenProjectBuilder builder
| Constructor Detail |
|---|
public AbstractJRubyMojo()
| Method Detail |
|---|
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.MojoExecutionExceptionprotected File launchDirectory()
protected void execute(String args,
boolean resolveArtifacts)
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected void executeScript(File script,
String args,
boolean resolveArtifacts,
Map<String,String> env)
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected void execute(String args,
boolean resolveArtifacts,
Map<String,String> env)
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected void execute(String args)
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected void execute(String[] args)
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected void execute(String[] args,
File outputFile)
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected void execute(String[] args,
File outputFile,
boolean resolveArtifacts)
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected Map<String,String> setupEnv()
protected void setupEnv(Map<String,String> env)
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.MojoExecutionExceptionprotected String fileFromClassloader(String file)
protected File binDirectory()
protected StringBuilder binScript(String script)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||