@Mojo(name="exec", defaultPhase=INITIALIZE, requiresDependencyResolution=TEST, requiresProject=false) public class ExecMojo extends AbstractGemMojo
${jruby.args} ${exec.file} ${exec.args} ${args}
Modifier and Type | Field and Description |
---|---|
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 String |
filename
ruby file found on search path which gets executed.
|
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, unzip
addProjectClasspath, args, 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() |
addResource, execute, executeJRuby, gemHome, getRemoteRepos, newScriptFactory
getDefaultJRubyVersion, getJrubyVersion, getProjectClasspath, launchDirectory, resolveJRubyArtifact, resolveJRubyCompleteArtifact, resolveJRubyStdlibArtifact
@Parameter(property="exec.script") protected String script
@Parameter(property="exec.file") protected File file
@Parameter(property="exec.filename") protected String filename
@Parameter(property="exec.outputFile") protected File outputFile
@Parameter(property="exec.args") protected String execArgs
@Parameter protected String[] execArgLines
protected void executeWithGems() throws org.apache.maven.plugin.MojoExecutionException, ScriptException, IOException
executeWithGems
in class AbstractGemMojo
org.apache.maven.plugin.MojoExecutionException
ScriptException
IOException
Copyright © 2017. All rights reserved.