de.saumya.mojo.rails
Class RailsMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by de.saumya.mojo.jruby.AbstractJRubyMojo
          extended by de.saumya.mojo.gem.AbstractGemMojo
              extended by de.saumya.mojo.rails.AbstractRailsMojo
                  extended by 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.


Field Summary
protected  File appPath
          the path to the application to be generated
protected  String artifactVersion
          the version of the new pom
protected  String groupId
          the groupId of the new pom
protected  String railsArgs
          arguments for the rails command
protected  String railsVersion
          the rails version to use
 
Fields inherited from class de.saumya.mojo.rails.AbstractRailsMojo
args, dir, env
 
Fields inherited from class de.saumya.mojo.gem.AbstractGemMojo
includeOpenSSL, log
 
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
 
Constructor Summary
RailsMojo()
           
 
Method Summary
 void execute()
           
 void executeWithGems()
           
protected  File launchDirectory()
           
protected  File railsScriptFile()
           
 
Methods inherited from class de.saumya.mojo.rails.AbstractRailsMojo
railsScript
 
Methods inherited from class de.saumya.mojo.gem.AbstractGemMojo
setupGems
 
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
 

Field Detail

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

Constructor Detail

RailsMojo

public RailsMojo()
Method Detail

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.