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, env, railsDir
 
Fields inherited from class de.saumya.mojo.gem.AbstractGemMojo
gemArgs, gemHome, gemInitializeArgs, gemPath, gemService, includeOpenSSL, installRDoc, installRI
 
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
 
Constructor Summary
RailsMojo()
           
 
Method Summary
 void executeWithGems()
           
protected  File launchDirectory()
           
 void preExecute()
           
 
Methods inherited from class de.saumya.mojo.rails.AbstractRailsMojo
railsScriptFile
 
Methods inherited from class de.saumya.mojo.gem.AbstractGemMojo
executeJRuby, newScriptFactory, setupGems
 
Methods inherited from class de.saumya.mojo.jruby.AbstractJRubyMojo
execute, resolveJRUBYCompleteArtifact, resolveTransitively
 
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

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.