de.saumya.mojo.rails
Class NewMojo

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.NewMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
RailsMojo

public class NewMojo
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  java.io.File appPath
          the path to the application to be generated
protected  java.lang.String artifactVersion
          the version of the new pom
protected  java.lang.String groupId
          the groupId of the new pom
protected  java.lang.String railsArgs
          arguments for the rails command
protected  java.lang.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
binDirectory, gemArgs, gemHome, gemPath, gemsConfig, gemsInstaller, includeOpenSSL, installRDoc, installRI, manager
 
Fields inherited from class de.saumya.mojo.jruby.AbstractJRubyMojo
classRealm, factory, GEM_RUBY_COMMAND, IRB_RUBY_COMMAND, IRB_SWING_RUBY_COMMAND, jrubyArgs, jrubyFork, jrubyVerbose, jrubyVersion, localRepository, logger, project, RAKE_RUBY_COMMAND, repositorySystem
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
NewMojo()
           
 
Method Summary
 void executeWithGems()
           
protected  java.io.File launchDirectory()
           
 
Methods inherited from class de.saumya.mojo.rails.AbstractRailsMojo
railsScriptFile
 
Methods inherited from class de.saumya.mojo.gem.AbstractGemMojo
executeJRuby, newScriptFactory
 
Methods inherited from class de.saumya.mojo.jruby.AbstractJRubyMojo
execute, resolveJRUBYCompleteArtifact
 
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 java.lang.String railsArgs
arguments for the rails command


appPath

protected java.io.File appPath
the path to the application to be generated


railsVersion

protected java.lang.String railsVersion
the rails version to use


groupId

protected java.lang.String groupId
the groupId of the new pom


artifactVersion

protected java.lang.String artifactVersion
the version of the new pom

Constructor Detail

NewMojo

public NewMojo()
Method Detail

launchDirectory

protected java.io.File launchDirectory()
Overrides:
launchDirectory in class AbstractRailsMojo

executeWithGems

public void executeWithGems()
                     throws org.apache.maven.plugin.MojoExecutionException,
                            ScriptException,
                            java.io.IOException,
                            GemException
Specified by:
executeWithGems in class AbstractGemMojo
Throws:
org.apache.maven.plugin.MojoExecutionException
ScriptException
java.io.IOException
GemException


Copyright © 2010. All Rights Reserved.