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:
AbstractTestMojo

public abstract class AbstractGemMojo
extends AbstractJRubyMojo


Field Summary
protected  File binDirectory
          directory of JRuby bin path to use when forking JRuby.
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  GemsConfig gemsConfig
           
protected  GemsInstaller gemsInstaller
           
protected  boolean includeOpenSSL
          flag whether to include open-ssl gem or not
Command line -Dgem.includeOpenSSL=...
protected  boolean includeRubygemsInTestResources
          flag whether to include all gems to test-resources, i.e.
protected  boolean installRDoc
          flag whether to install rdocs of the used gems or not
Command line -Dgem.installRDoc=...
protected  boolean installRI
          flag whether to install ri of the used gems or not
Command line -Dgem.installRDoc=...
protected  GemManager manager
           
protected  org.apache.maven.plugin.descriptor.PluginDescriptor plugin
           
protected  boolean supportNative
          flag to indicate to setup jruby's native support for C-extensions
Command line -Dgem.supportNative=...
protected  org.codehaus.plexus.archiver.UnArchiver unzip
           
 
Fields inherited from class de.saumya.mojo.jruby.AbstractJRubyMojo
args, classRealm, DEFAULT_JRUBY_VERSION, factory, JRUBY_COMPLETE, JRUBY_CORE, JRUBY_STDLIB, jrubyFork, jrubyJvmArgs, jrubySwitches, jrubyVerbose, jrubyVersion, libDirectory, localRepository, logger, project, repositorySystem, rubySourceDirectory
 
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(org.apache.maven.artifact.Artifact artifact)
           
 
Methods inherited from class de.saumya.mojo.jruby.AbstractJRubyMojo
execute, launchDirectory, newScriptFactory, resolveJRubyArtifact, resolveJRubyCompleteArtifact, retrieveStdlibArtifact
 
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

unzip

protected org.codehaus.plexus.archiver.UnArchiver unzip

plugin

protected org.apache.maven.plugin.descriptor.PluginDescriptor plugin

includeOpenSSL

protected boolean includeOpenSSL
flag whether to include open-ssl gem or not
Command line -Dgem.includeOpenSSL=...


includeRubygemsInTestResources

protected boolean includeRubygemsInTestResources
flag whether to include all gems to test-resources, i.e. to test-classpath or not
Command line -Dgem.includeRubygemsInTestResources=...


installRDoc

protected boolean installRDoc
flag whether to install rdocs of the used gems or not
Command line -Dgem.installRDoc=...


installRI

protected boolean installRI
flag whether to install ri of the used gems or not
Command line -Dgem.installRDoc=...


gemHome

protected File gemHome
directory of gem home to use when forking JRuby.
Command line -Dgem.home=...


gemPath

protected File gemPath
directory of JRuby path to use when forking JRuby.
Command line -Dgem.path=...


binDirectory

protected File binDirectory
directory of JRuby bin path to use when forking JRuby.
Command line -Dgem.binDirectory=...


supportNative

protected boolean supportNative
flag to indicate to setup jruby's native support for C-extensions
Command line -Dgem.supportNative=...


manager

protected GemManager manager

gemsConfig

protected GemsConfig gemsConfig

gemsInstaller

protected GemsInstaller gemsInstaller
Constructor Detail

AbstractGemMojo

public AbstractGemMojo()
Method Detail

newScriptFactory

protected ScriptFactory newScriptFactory(org.apache.maven.artifact.Artifact artifact)
                                  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,
                            ScriptException
Specified by:
executeJRuby in class AbstractJRubyMojo
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
IOException
ScriptException

executeWithGems

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


Copyright © 2011. All Rights Reserved.