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.tests.AbstractTestMojo
                  extended by de.saumya.mojo.rspec.RSpecMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class RSpecMojo
extends AbstractTestMojo

executes the jruby command.


Field Summary
protected  boolean skipSpecs
          skip rspecs
Command line -DskipSpecs=...
protected  String specSourceDirectory
          The directory containing the RSpec source files
Command line -Drspec.dir=...
 
Fields inherited from class de.saumya.mojo.tests.AbstractTestMojo
skip, skipTests, summaryReport, testReportDirectory, use18and19
 
Fields inherited from class de.saumya.mojo.gem.AbstractGemMojo
binDirectory, gemHome, gemPath, gemsConfig, gemsInstaller, gemUseSystem, includeOpenSSL, includeRubygemsInTestResources, installRDoc, installRI, manager, plugin, supportNative, unzip
 
Fields inherited from class de.saumya.mojo.jruby.AbstractJRubyMojo
args, classRealm, DEFAULT_JRUBY_VERSION, factory, JRUBY_COMPLETE, JRUBY_CORE, JRUBY_STDLIB, jrubyFork, jrubyJvmArgs, jrubySwitches, jrubyVerbose, libDirectory, localRepository, logger, project, repositorySystem, rubySourceDirectory
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
RSpecMojo()
           
 
Method Summary
 void execute()
           
protected  TestScriptFactory newTestScriptFactory(JRubyRun.Mode mode)
           
protected  JRubyRun.Result runIt(ScriptFactory factory, JRubyRun.Mode mode, String version, TestScriptFactory scriptFactory)
           
 
Methods inherited from class de.saumya.mojo.tests.AbstractTestMojo
executeWithGems, runIt
 
Methods inherited from class de.saumya.mojo.gem.AbstractGemMojo
executeJRuby, getRemoteRepos, newScriptFactory
 
Methods inherited from class de.saumya.mojo.jruby.AbstractJRubyMojo
getJrubyVersion, launchDirectory, newScriptFactory, resolveJRubyArtifact, resolveJRubyCompleteArtifact, resolveJRubyStdlibArtifact
 
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

specSourceDirectory

protected String specSourceDirectory
The directory containing the RSpec source files
Command line -Drspec.dir=...


skipSpecs

protected boolean skipSpecs
skip rspecs
Command line -DskipSpecs=...

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 AbstractGemMojo
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException

runIt

protected JRubyRun.Result runIt(ScriptFactory factory,
                                JRubyRun.Mode mode,
                                String version,
                                TestScriptFactory scriptFactory)
                         throws IOException,
                                ScriptException,
                                org.apache.maven.plugin.MojoExecutionException
Specified by:
runIt in class AbstractTestMojo
Throws:
IOException
ScriptException
org.apache.maven.plugin.MojoExecutionException

newTestScriptFactory

protected TestScriptFactory newTestScriptFactory(JRubyRun.Mode mode)
Specified by:
newTestScriptFactory in class AbstractTestMojo


Copyright © 2013. All Rights Reserved.