de.saumya.mojo.ruby
Class GemScriptFactory

java.lang.Object
  extended by de.saumya.mojo.ruby.ScriptFactory
      extended by de.saumya.mojo.ruby.GemScriptFactory
All Implemented Interfaces:
GemService

public class GemScriptFactory
extends ScriptFactory
implements GemService


Field Summary
static String GEM_HOME
           
static String GEM_PATH
           
 
Fields inherited from class de.saumya.mojo.ruby.ScriptFactory
NO_CLASSPATH
 
Constructor Summary
GemScriptFactory(Logger logger, org.codehaus.classworlds.ClassRealm classRealm, File jrubyJar, List<String> classpathElements, boolean fork, File gemHome, File gemPath)
           
 
Method Summary
 File binDirectory()
           
 String binScript(String script)
           
 File binScriptFile(String script)
           
 File gemDirectory()
           
 
Methods inherited from class de.saumya.mojo.ruby.ScriptFactory
addEnv, addEnv, addEnvs, addJavaArgs, addJavaOption, addJavaOption, addJavaProperty, addSwitch, addSwitch, addSwitches, newArguments, newScript, newScript, newScriptFromResource, newScriptFromSearchPath, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

GEM_HOME

public static final String GEM_HOME
See Also:
Constant Field Values

GEM_PATH

public static final String GEM_PATH
See Also:
Constant Field Values
Constructor Detail

GemScriptFactory

public GemScriptFactory(Logger logger,
                        org.codehaus.classworlds.ClassRealm classRealm,
                        File jrubyJar,
                        List<String> classpathElements,
                        boolean fork,
                        File gemHome,
                        File gemPath)
                 throws RubyScriptException,
                        IOException
Throws:
RubyScriptException
IOException
Method Detail

binDirectory

public File binDirectory()
                  throws RubyScriptException
Specified by:
binDirectory in interface GemService
Throws:
RubyScriptException

gemDirectory

public File gemDirectory()
                  throws RubyScriptException
Specified by:
gemDirectory in interface GemService
Throws:
RubyScriptException

binScriptFile

public File binScriptFile(String script)
                   throws RubyScriptException
Specified by:
binScriptFile in interface GemService
Throws:
RubyScriptException

binScript

public String binScript(String script)
                 throws RubyScriptException
Throws:
RubyScriptException


Copyright © 2010. All Rights Reserved.