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, artifacts, builder, classRealm, fork, gemHome, gemPath, home, launchDirectory, launchMemory, localRepository, metadata, outputDirectory, outputFile, project, remoteRepositories, resolver, verbose, version |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
| Methods inherited from class de.saumya.mojo.jruby.AbstractJRubyMojo |
binDirectory, binScript, execute, execute, execute, execute, execute, execute, executeScript, fileFromClassloader, resolveJRUBYCompleteArtifact, resolveTransitively, setupEnv, setupEnv |
| 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()
execute
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
- Specified by:
execute in interface org.apache.maven.plugin.Mojo- Overrides:
execute in class AbstractGemMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
launchDirectory
protected File launchDirectory()
- Overrides:
launchDirectory in class AbstractRailsMojo
railsScriptFile
protected File railsScriptFile()
executeWithGems
public void executeWithGems()
throws org.apache.maven.plugin.MojoExecutionException
- Specified by:
executeWithGems in class AbstractGemMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
Copyright © 2010. All Rights Reserved.