de.saumya.mojo.rails
Class GenerateMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
de.saumya.mojo.jruby.AbstractJRubyMojo
de.saumya.mojo.gem.AbstractGemMojo
de.saumya.mojo.rails.AbstractRailsMojo
de.saumya.mojo.rails.GenerateMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
public class GenerateMojo
- extends AbstractRailsMojo
Goal to run rails generator script.
|
Field Summary |
protected java.lang.String |
generateArgs
arguments for the generate command |
protected java.lang.String |
generator
the name of the generator |
| Fields inherited from class de.saumya.mojo.gem.AbstractGemMojo |
binDirectory, gemHome, gemPath, gemsConfig, gemsInstaller, includeOpenSSL, includeRubygemsInTestResources, installRDoc, installRI, manager, plugin, supportNative, unzip |
| Fields inherited from class de.saumya.mojo.jruby.AbstractJRubyMojo |
classRealm, DEFAULT_JRUBY_VERSION, factory, JRUBY_COMPLETE, JRUBY_CORE, JRUBY_STDLIB, jrubyFork, jrubyJvmArgs, jrubySwitches, jrubyVerbose, jrubyVersion, libDirectory, localRepository, logger, project, repositorySystem, rubySourceDirectory |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
| Methods inherited from class org.apache.maven.plugin.AbstractMojo |
getLog, getPluginContext, setLog, setPluginContext |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
generateArgs
protected java.lang.String generateArgs
- arguments for the generate command
generator
protected java.lang.String generator
- the name of the generator
GenerateMojo
public GenerateMojo()
execute
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
- Specified by:
execute in interface org.apache.maven.plugin.Mojo- Overrides:
execute in class AbstractJRubyMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
executeWithGems
protected void executeWithGems()
throws org.apache.maven.plugin.MojoExecutionException,
ScriptException,
java.io.IOException
- Specified by:
executeWithGems in class AbstractGemMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
ScriptException
java.io.IOException
Copyright © 2011. All Rights Reserved.