de.saumya.mojo.gem
Class AbstractGemMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by de.saumya.mojo.jruby.AbstractJRubyMojo
          extended by de.saumya.mojo.gem.AbstractGemMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
AbstractRailsMojo

public abstract class AbstractGemMojo
extends AbstractJRubyMojo


Field Summary
protected  String gemArgs
          arguments for the gem command.
protected  File gemHome
          directory of gem home to use when forking JRuby.
protected  String gemInitializeArgs
          arguments for the gem command during base initialization.
protected  File gemPath
          directory of JRuby path to use when forking JRuby.
protected  GemService gemService
           
protected  boolean includeOpenSSL
           
protected  boolean installRDoc
           
protected  boolean installRI
           
protected  GemifyManager manager
           
 
Fields inherited from class de.saumya.mojo.jruby.AbstractJRubyMojo
args, artifactFactory, builder, classRealm, factory, GEM_RUBY_COMMAND, IRB_RUBY_COMMAND, IRB_SWING_RUBY_COMMAND, jrubyArgs, jrubyFork, jrubyGemHome, jrubyGemPath, jrubyVerbose, jrubyVersion, localRepository, logger, metadata, project, RAKE_RUBY_COMMAND, resolver
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractGemMojo()
           
 
Method Summary
protected  void executeJRuby()
           
protected abstract  void executeWithGems()
           
protected  ScriptFactory newScriptFactory()
           
protected  void setupGems(org.apache.maven.artifact.Artifact artifact)
           
 
Methods inherited from class de.saumya.mojo.jruby.AbstractJRubyMojo
execute, launchDirectory, preExecute, resolveJRUBYCompleteArtifact, resolveTransitively
 
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

includeOpenSSL

protected boolean includeOpenSSL

installRDoc

protected boolean installRDoc

installRI

protected boolean installRI

gemHome

protected File gemHome
directory of gem home to use when forking JRuby.


gemPath

protected File gemPath
directory of JRuby path to use when forking JRuby.


gemArgs

protected String gemArgs
arguments for the gem command.


gemInitializeArgs

protected String gemInitializeArgs
arguments for the gem command during base initialization.


manager

protected GemifyManager manager

gemService

protected GemService gemService
Constructor Detail

AbstractGemMojo

public AbstractGemMojo()
Method Detail

newScriptFactory

protected ScriptFactory newScriptFactory()
                                  throws org.apache.maven.plugin.MojoExecutionException
Overrides:
newScriptFactory in class AbstractJRubyMojo
Throws:
org.apache.maven.plugin.MojoExecutionException

executeJRuby

protected void executeJRuby()
                     throws org.apache.maven.plugin.MojoExecutionException,
                            org.apache.maven.plugin.MojoFailureException,
                            IOException,
                            RubyScriptException
Specified by:
executeJRuby in class AbstractJRubyMojo
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
IOException
RubyScriptException

setupGems

protected void setupGems(org.apache.maven.artifact.Artifact artifact)
                  throws org.apache.maven.plugin.MojoExecutionException,
                         IOException,
                         RubyScriptException
Throws:
org.apache.maven.plugin.MojoExecutionException
IOException
RubyScriptException

executeWithGems

protected abstract void executeWithGems()
                                 throws org.apache.maven.plugin.MojoExecutionException,
                                        RubyScriptException,
                                        IOException,
                                        org.apache.maven.plugin.MojoFailureException
Throws:
org.apache.maven.plugin.MojoExecutionException
RubyScriptException
IOException
org.apache.maven.plugin.MojoFailureException


Copyright © 2010. All Rights Reserved.