de.saumya.mojo.rspec
Class RSpecMojo

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.rspec.RSpecMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class RSpecMojo
extends AbstractGemMojo

executes the jruby command.


Field Summary
protected  File basedir
          The project base directory
protected  List<String> classpathElements
          The classpath elements of the project being tested.
protected  File outputDirectory
          The directory where the RSpec report will be written to
protected  String reportName
          The name of the RSpec report (optional, defaults to "rspec-report.html")
protected  boolean skipSpecs
           
protected  boolean skipTests
          The flag to skip tests (optional, defaults to "false")
protected  String specSourceDirectory
          The directory containing the RSpec source files
protected  Properties systemProperties
          List of system properties to set for the tests.
 
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
args, classRealm, factory, GEM_RUBY_COMMAND, IRB_RUBY_COMMAND, IRB_SWING_RUBY_COMMAND, jrubyArgs, jrubyFork, jrubyJvmArgs, jrubySwitches, jrubyVerbose, jrubyVersion, localRepository, logger, project, RAKE_RUBY_COMMAND, repositorySystem
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
RSpecMojo()
           
 
Method Summary
 void execute()
           
 void executeWithGems()
           
 
Methods inherited from class de.saumya.mojo.gem.AbstractGemMojo
executeJRuby, newScriptFactory
 
Methods inherited from class de.saumya.mojo.jruby.AbstractJRubyMojo
launchDirectory, 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

basedir

protected File basedir
The project base directory


classpathElements

protected List<String> classpathElements
The classpath elements of the project being tested.


skipTests

protected boolean skipTests
The flag to skip tests (optional, defaults to "false")


skipSpecs

protected boolean skipSpecs

specSourceDirectory

protected String specSourceDirectory
The directory containing the RSpec source files


outputDirectory

protected File outputDirectory
The directory where the RSpec report will be written to


reportName

protected String reportName
The name of the RSpec report (optional, defaults to "rspec-report.html")


systemProperties

protected Properties systemProperties
List of system properties to set for the tests.

Constructor Detail

RSpecMojo

public RSpecMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException,
                    org.apache.maven.plugin.MojoFailureException
Specified by:
execute in interface org.apache.maven.plugin.Mojo
Overrides:
execute in class AbstractJRubyMojo
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException

executeWithGems

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


Copyright © 2011. All Rights Reserved.