@Mojo(name="suspend")
public final class SuspendMojo
extends de.saumya.mojo.gem.AbstractGemMojo
suspend
command.Modifier and Type | Field and Description |
---|---|
protected org.sonatype.plexus.build.incremental.BuildContext |
buildContext
Required by
AbstractGemMojo . |
protected org.codehaus.classworlds.ClassRealm |
classRealm
Required by
AbstractGemMojo . |
protected File |
gemHome
Custom gems directory.
|
protected org.apache.maven.artifact.repository.ArtifactRepository |
localRepository
Required by
AbstractGemMojo . |
protected de.saumya.mojo.ruby.gems.GemManager |
manager
Required by
AbstractGemMojo . |
static String |
NAME
Mojo/Vagrant command name.
|
protected org.apache.maven.plugin.descriptor.PluginDescriptor |
plugin
Required by
AbstractGemMojo . |
protected org.apache.maven.project.MavenProject |
project
Required by
AbstractGemMojo . |
protected org.apache.maven.repository.RepositorySystem |
repositorySystem
Required by
AbstractGemMojo . |
protected org.codehaus.plexus.archiver.UnArchiver |
unzip
Required by
AbstractGemMojo . |
protected File |
vagrantHome
Custom
VAGRANT_HOME , which is the directory where Vagrant boxes are stored. |
protected File |
vagrantRc
Custom
VAGRANT_RC , which is the configuration file used by Vagrant. |
protected String |
vm
VM name.
|
binDirectory, gemHomes, gemPath, gemsConfig, gemsInstaller, gemUseSystem, includeGemsInResources, includeLibDirectoryInResources, includeOpenSSL, includeProvidedRubygemsInResources, includeRubygemsInResources, includeRubygemsInTestResources, installRDoc, installRI, supportNative
addProjectClasspath, args, DEFAULT_JRUBY_VERSION, eclipseRefresh, eclipseWatches, env, factory, JRUBY_COMPLETE, JRUBY_CORE, JRUBY_STDLIB, jrubyFork, jrubyJvmArgs, jrubySwitches, jrubyVerbose, libDirectory, logger, rubySourceDirectory
Constructor and Description |
---|
SuspendMojo() |
Modifier and Type | Method and Description |
---|---|
protected void |
cli(Iterable<String> args) |
protected void |
cli(String... args) |
protected void |
doExecute() |
void |
execute() |
protected void |
executeWithGems() |
addResource, executeJRuby, gemHome, getRemoteRepos, newScriptFactory
getDefaultJRubyVersion, getJrubyVersion, getProjectClasspath, launchDirectory, resolveJRubyArtifact, resolveJRubyCompleteArtifact, resolveJRubyStdlibArtifact
public static final String NAME
@Parameter protected String vm
@Parameter(defaultValue="${project.build.directory}/vagrant/gems") protected File gemHome
project.build.directory
(default): user installation can not impact build, but gems are unpacked at every build.project.basedir
: user installation can not impact build, gems are unpacked once for all, but files are created outside of build directory.project.basedir
(Vagrant default): user installation can impact build.@Parameter(defaultValue="${project.build.directory}/vagrant/vagrant.d") protected File vagrantHome
VAGRANT_HOME
, which is the directory where Vagrant boxes are stored.
Modifying this property has an impact on isolation/build portability, eg:
project.build.directory
(default): boxes must be imported every time, but no file is created outside of build directory.project.basedir
: boxes can be imported once for all, but files are created outside of build directory.~/.vagrant.d
(Vagrant default): user boxes can be directly used, but files are created outside of project structure.@Parameter(defaultValue="${project.build.directory}/vagrant/vagrantrc") protected File vagrantRc
VAGRANT_RC
, which is the configuration file used by Vagrant.
Modifying this property has an impact on isolation/build portability, eg:
project.build.directory
(default): user installation can not impact build.project.basedir
: user installation can not impact build.~/.vagrantrc
(Vagrant default): user installation can impact build.@Parameter(defaultValue="${project}", readonly=true) protected org.apache.maven.project.MavenProject project
AbstractGemMojo
.@Parameter(defaultValue="${plugin}", readonly=true) protected org.apache.maven.plugin.descriptor.PluginDescriptor plugin
AbstractGemMojo
.@Component protected org.apache.maven.repository.RepositorySystem repositorySystem
AbstractGemMojo
.@Parameter(readonly=true, defaultValue="${localRepository}") protected org.apache.maven.artifact.repository.ArtifactRepository localRepository
AbstractGemMojo
.@Parameter(readonly=true, defaultValue="${dummy}") protected org.codehaus.classworlds.ClassRealm classRealm
AbstractGemMojo
.@Component(hint="zip") protected org.codehaus.plexus.archiver.UnArchiver unzip
AbstractGemMojo
.@Component protected de.saumya.mojo.ruby.gems.GemManager manager
AbstractGemMojo
.@Component protected org.sonatype.plexus.build.incremental.BuildContext buildContext
AbstractGemMojo
.protected void doExecute() throws IOException, de.saumya.mojo.ruby.script.ScriptException
IOException
de.saumya.mojo.ruby.script.ScriptException
public final void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
execute
in interface org.apache.maven.plugin.Mojo
execute
in class de.saumya.mojo.gem.AbstractGemMojo
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
protected final void executeWithGems() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
executeWithGems
in class de.saumya.mojo.gem.AbstractGemMojo
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
protected final void cli(String... args) throws IOException, de.saumya.mojo.ruby.script.ScriptException
IOException
de.saumya.mojo.ruby.script.ScriptException
protected final void cli(Iterable<String> args) throws IOException, de.saumya.mojo.ruby.script.ScriptException
IOException
de.saumya.mojo.ruby.script.ScriptException
Copyright © 2013–2016. All rights reserved.