public abstract class AbstractGemMojo extends AbstractJRubyMojo
| Modifier and Type | Field and Description |
|---|---|
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 |
gemUseSystem
use system gems instead of setting up GemPath/GemHome inside the build directory and ignores any set
gemHome and gemPath.
|
protected boolean |
includeOpenSSL
flag whether to include open-ssl gem or not
Command line -Dgem.includeOpenSSL=... |
protected boolean |
includeRubygemsInResources
flag whether to include all gems to resources, i.e.
|
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 |
args, classRealm, DEFAULT_JRUBY_VERSION, env, factory, JRUBY_COMPLETE, JRUBY_CORE, JRUBY_STDLIB, jrubyFork, jrubyJvmArgs, jrubySwitches, jrubyVerbose, libDirectory, localRepository, logger, project, repositorySystem, rubySourceDirectory| Constructor and Description |
|---|
AbstractGemMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
protected void |
executeJRuby() |
protected abstract void |
executeWithGems() |
protected List<org.apache.maven.artifact.repository.ArtifactRepository> |
getRemoteRepos() |
protected ScriptFactory |
newScriptFactory(org.apache.maven.artifact.Artifact artifact) |
getJrubyVersion, launchDirectory, resolveJRubyArtifact, resolveJRubyCompleteArtifact, resolveJRubyStdlibArtifactprotected org.codehaus.plexus.archiver.UnArchiver unzip
protected org.apache.maven.plugin.descriptor.PluginDescriptor plugin
protected boolean includeOpenSSL
protected boolean includeRubygemsInTestResources
protected boolean includeRubygemsInResources
protected boolean installRDoc
protected boolean installRI
protected boolean gemUseSystem
protected File gemHome
protected File gemPath
protected File binDirectory
protected boolean supportNative
protected GemManager manager
protected GemsConfig gemsConfig
protected GemsInstaller gemsInstaller
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
execute in interface org.apache.maven.plugin.Mojoexecute in class AbstractJRubyMojoorg.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected ScriptFactory newScriptFactory(org.apache.maven.artifact.Artifact artifact) throws org.apache.maven.plugin.MojoExecutionException
newScriptFactory in class AbstractJRubyMojoorg.apache.maven.plugin.MojoExecutionExceptionprotected void executeJRuby()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException,
IOException,
ScriptException
executeJRuby in class AbstractJRubyMojoorg.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionIOExceptionScriptExceptionprotected abstract void executeWithGems()
throws org.apache.maven.plugin.MojoExecutionException,
ScriptException,
GemException,
IOException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionScriptExceptionGemExceptionIOExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected List<org.apache.maven.artifact.repository.ArtifactRepository> getRemoteRepos()
Copyright © 2013. All Rights Reserved.