de.saumya.mojo.rails
Class RailsMojo
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.RailsMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
public class RailsMojo
- extends AbstractRailsMojo
goal to run rails command with the given arguments. either to generate a
fresh rails application or to run the rails script from within a rails
application.
| Fields inherited from class de.saumya.mojo.jruby.AbstractJRubyMojo |
artifactFactory, builder, classRealm, factory, GEM_RUBY_COMMAND, IRB_RUBY_COMMAND, IRB_SWING_RUBY_COMMAND, jrubyArgs, jrubyFork, jrubyGemHome, jrubyGemPath, jrubyVerbose, jrubyVersion, localRepository, logger, metadata, project, RAKE_RUBY_COMMAND, resolver |
| 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 |
railsArgs
protected String railsArgs
- arguments for the rails command
appPath
protected File appPath
- the path to the application to be generated
railsVersion
protected String railsVersion
- the rails version to use
groupId
protected String groupId
- the groupId of the new pom
artifactVersion
protected String artifactVersion
- the version of the new pom
RailsMojo
public RailsMojo()
preExecute
public void preExecute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException,
IOException,
RubyScriptException,
GemException
- Overrides:
preExecute in class AbstractJRubyMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
IOException
RubyScriptException
GemException
launchDirectory
protected File launchDirectory()
- Overrides:
launchDirectory in class AbstractRailsMojo
executeWithGems
public void executeWithGems()
throws org.apache.maven.plugin.MojoExecutionException,
RubyScriptException,
IOException
- Specified by:
executeWithGems in class AbstractGemMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
RubyScriptException
IOException
Copyright © 2010. All Rights Reserved.