Package de.saumya.mojo.gem
Class ProcessResourcesMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
de.saumya.mojo.jruby.AbstractJRubyMojo
de.saumya.mojo.gem.AbstractGemMojo
de.saumya.mojo.gem.ProcessResourcesMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="process-resources",
defaultPhase=PROCESS_RESOURCES)
public class ProcessResourcesMojo
extends AbstractGemMojo
installs a set of given gems without resolving any transitive dependencies
-
Field Summary
FieldsModifier and TypeFieldDescriptionFields inherited from class de.saumya.mojo.gem.AbstractGemMojo
binDirectory, gemHome, gemHomes, gemPath, gemsConfig, gemsInstaller, gemUseSystem, includeGemsInResources, includeLibDirectoryInResources, includeOpenSSL, includeProvidedRubygemsInResources, includeRubygemsInResources, includeRubygemsInTestResources, installRDoc, installRI, manager, plugin, supportNative, unzipFields inherited from class de.saumya.mojo.jruby.AbstractJRubyMojo
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, rubySourceDirectoryFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprivate voidprocessBaseDirectory(org.codehaus.plexus.util.DirectoryScanner scanner, File jrubydir) private voidprocessDir(File jrubydir, File dir) private voidprocessNestedDiretories(org.codehaus.plexus.util.DirectoryScanner scanner) private org.codehaus.plexus.util.DirectoryScannerMethods inherited from class de.saumya.mojo.gem.AbstractGemMojo
addResource, execute, executeJRuby, gemHome, getRemoteRepos, newScriptFactoryMethods inherited from class de.saumya.mojo.jruby.AbstractJRubyMojo
getDefaultJRubyVersion, getJrubyVersion, getProjectClasspath, launchDirectory, resolveJRubyArtifact, resolveJRubyCompleteArtifact, resolveJRubyStdlibArtifactMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
includeRubyResources
-
excludeRubyResources
-
-
Constructor Details
-
ProcessResourcesMojo
public ProcessResourcesMojo()
-
-
Method Details
-
executeWithGems
protected void executeWithGems() throws org.apache.maven.plugin.MojoExecutionException, ScriptException, IOException, GemException- Specified by:
executeWithGemsin classAbstractGemMojo- Throws:
org.apache.maven.plugin.MojoExecutionExceptionScriptExceptionIOExceptionGemException
-
processDir
- Throws:
IOExceptionScriptException
-
processNestedDiretories
private void processNestedDiretories(org.codehaus.plexus.util.DirectoryScanner scanner) throws IOException, ScriptException - Throws:
IOExceptionScriptException
-
processBaseDirectory
private void processBaseDirectory(org.codehaus.plexus.util.DirectoryScanner scanner, File jrubydir) throws IOException - Throws:
IOException
-
scan
-