Package de.saumya.mojo.ruby.script
Class EmbeddedLauncher
java.lang.Object
de.saumya.mojo.ruby.script.AbstractLauncher
de.saumya.mojo.ruby.script.EmbeddedLauncher
- All Implemented Interfaces:
Launcher
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.codehaus.classworlds.ClassRealmprivate final ScriptFactoryprivate final Loggerprivate static final Class<?>[]private static final Object[]private static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate org.codehaus.classworlds.ClassRealmcloneClassRealm(File jrubyJar, List<String> classpathElements, org.codehaus.classworlds.ClassRealm classRealm) private voidprotected voidprotected voiddoExecute(File launchDirectory, List<String> args, OutputStream outputStream) voidvoidexecuteScript(File launchDirectory, String script, List<String> args, OutputStream outputStream) Methods inherited from class de.saumya.mojo.ruby.script.AbstractLauncher
execute, execute, execute, executeIn, executeIn, executeIn, executeScript, executeScript, executeScript, executeScript
-
Field Details
-
TEMP_FILE_PREFIX
- See Also:
-
No_ARG_TYPES
-
NO_ARGS
-
classRealm
private final org.codehaus.classworlds.ClassRealm classRealm -
factory
-
logger
-
-
Constructor Details
-
EmbeddedLauncher
- Throws:
ScriptException
-
-
Method Details
-
cloneClassRealm
private org.codehaus.classworlds.ClassRealm cloneClassRealm(File jrubyJar, List<String> classpathElements, org.codehaus.classworlds.ClassRealm classRealm) throws ScriptException - Throws:
ScriptException
-
doExecute
protected void doExecute(File launchDirectory, List<String> args, File outputFile) throws ScriptException, IOException - Specified by:
doExecutein classAbstractLauncher- Throws:
ScriptExceptionIOException
-
doExecute
protected void doExecute(File launchDirectory, List<String> args, OutputStream outputStream) throws ScriptException, IOException - Specified by:
doExecutein classAbstractLauncher- Throws:
ScriptExceptionIOException
-
doExecute
private void doExecute(File launchDirectory, File outputFile, List<String> args, boolean warn) throws ScriptException, IOException - Throws:
ScriptExceptionIOException
-
executeScript
public void executeScript(File launchDirectory, String script, List<String> args, OutputStream outputStream) throws ScriptException, IOException - Throws:
ScriptExceptionIOException
-
executeScript
public void executeScript(File launchDirectory, String script, List<String> args, File outputFile) throws ScriptException, IOException - Throws:
ScriptExceptionIOException
-