@Mojo(name="exec",
requiresProject=true,
threadSafe=true,
requiresDependencyResolution=TEST)
public class ExecMojo
extends AbstractJRuby9Mojo
${jruby.args} ${exec.file} ${exec.args} ${args} | Modifier and Type | Field and Description |
|---|---|
protected boolean |
addProjectClasspath
add project test class path to JVM classpath.
|
protected String |
command
ruby file found on search path which gets executed.
|
protected String[] |
execArgLines
an array of arguments which can contain spaces for the ruby script given through file parameter.
|
protected String |
execArgs
arguments separated by whitespaces for the ruby script given through file parameter.
|
protected File |
file
ruby file which gets executed in context of the given gems..
|
protected File |
outputFile
output file where the standard out will be written
|
protected String |
script
ruby code from the pom configuration part which gets executed.
|
binDirectory, gemHome, gemHomes, gemPath, gemsConfig, gemsInstaller, gemUseSystem, includeGemsInResources, includeLibDirectoryInResources, includeOpenSSL, includeProvidedRubygemsInResources, includeRubygemsInResources, includeRubygemsInTestResources, installRDoc, installRI, manager, plugin, supportNative, unzipargs, classRealm, DEFAULT_JRUBY_VERSION, eclipseRefresh, eclipseWatches, env, factory, JRUBY_COMPLETE, JRUBY_CORE, JRUBY_STDLIB, jrubyFork, jrubyJvmArgs, jrubySwitches, jrubyVerbose, libDirectory, localRepository, logger, project, repositorySystem, rubySourceDirectory| Constructor and Description |
|---|
ExecMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
executeWithGems() |
getDefaultJRubyVersionaddResource, execute, executeJRuby, gemHome, getRemoteRepos, newScriptFactorygetJrubyVersion, getProjectClasspath, launchDirectory, resolveJRubyArtifact, resolveJRubyCompleteArtifact, resolveJRubyStdlibArtifact@Parameter(property="exec.script") protected String script
@Parameter(property="exec.file") protected File file
@Parameter(property="exec.command") protected String command
@Parameter(property="exec.outputFile") protected File outputFile
@Parameter(property="exec.args") protected String execArgs
@Parameter protected String[] execArgLines
@Parameter(property="gem.addProjectClasspath",
defaultValue="false")
protected boolean addProjectClasspath
protected void executeWithGems()
throws org.apache.maven.plugin.MojoExecutionException,
de.saumya.mojo.ruby.script.ScriptException,
IOException
executeWithGems in class de.saumya.mojo.gem.AbstractGemMojoorg.apache.maven.plugin.MojoExecutionExceptionde.saumya.mojo.ruby.script.ScriptExceptionIOExceptionCopyright © 2015. All Rights Reserved.