de.saumya.mojo.rspec
Class AbstractScriptFactory

java.lang.Object
  extended by de.saumya.mojo.rspec.AbstractScriptFactory
All Implemented Interfaces:
ScriptFactory
Direct Known Subclasses:
RSpecScriptFactory, ShellScriptFactory

public abstract class AbstractScriptFactory
extends Object
implements ScriptFactory


Field Summary
protected  String baseDir
           
protected  List<String> classpathElements
           
protected  File gemHome
           
protected  File gemPath
           
protected  File outputDir
           
protected  String reportPath
           
protected  String sourceDir
           
protected  Properties systemProperties
           
 
Constructor Summary
AbstractScriptFactory()
           
 
Method Summary
 void emit()
           
 File getScriptFile()
           
protected abstract  String getScriptName()
           
 void setBaseDir(String baseDir)
           
 void setClasspathElements(List<String> classpathElements)
           
 void setGemHome(File gemHome)
           
 void setGemPath(File gemPath)
           
 void setOutputDir(File outputDir)
           
 void setReportPath(String reportPath)
           
 void setSourceDir(String sourceDir)
           
 void setSystemProperties(Properties systemProperties)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.saumya.mojo.rspec.ScriptFactory
getScript
 

Field Detail

classpathElements

protected List<String> classpathElements

outputDir

protected File outputDir

baseDir

protected String baseDir

sourceDir

protected String sourceDir

reportPath

protected String reportPath

systemProperties

protected Properties systemProperties

gemHome

protected File gemHome

gemPath

protected File gemPath
Constructor Detail

AbstractScriptFactory

public AbstractScriptFactory()
Method Detail

setClasspathElements

public void setClasspathElements(List<String> classpathElements)
Specified by:
setClasspathElements in interface ScriptFactory

setOutputDir

public void setOutputDir(File outputDir)
Specified by:
setOutputDir in interface ScriptFactory

setBaseDir

public void setBaseDir(String baseDir)
Specified by:
setBaseDir in interface ScriptFactory

setSourceDir

public void setSourceDir(String sourceDir)
Specified by:
setSourceDir in interface ScriptFactory

setReportPath

public void setReportPath(String reportPath)
Specified by:
setReportPath in interface ScriptFactory

setSystemProperties

public void setSystemProperties(Properties systemProperties)
Specified by:
setSystemProperties in interface ScriptFactory

setGemHome

public void setGemHome(File gemHome)
Specified by:
setGemHome in interface ScriptFactory

setGemPath

public void setGemPath(File gemPath)
Specified by:
setGemPath in interface ScriptFactory

getScriptName

protected abstract String getScriptName()

getScriptFile

public File getScriptFile()

emit

public void emit()
          throws Exception
Specified by:
emit in interface ScriptFactory
Throws:
Exception


Copyright © 2010. All Rights Reserved.