Package de.saumya.mojo.ruby.script
Class AntLauncher
java.lang.Object
de.saumya.mojo.ruby.script.AbstractLauncher
de.saumya.mojo.ruby.script.AntLauncher
- All Implemented Interfaces:
Launcher
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate final ScriptFactoryprivate final Loggerprivate static final Stringprivate final org.apache.tools.ant.Projectprivate static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddScriptArguments(String script, List<String> args) private org.apache.tools.ant.Projectprotected voidprotected voiddoExecute(File launchDirectory, List<String> args, OutputStream outputStream) voidvoidvoidvoidvoidexecuteScript(File launchDirectory, String script, List<String> args) voidvoidexecuteScript(File launchDirectory, String script, List<String> args, OutputStream outputStream) voidexecuteScript(String script, List<String> args) voidexecuteScript(String script, List<String> args, File outputFile) private voidwriteInto(File file, OutputStream outputStream) Methods inherited from class de.saumya.mojo.ruby.script.AbstractLauncher
execute, executeIn, executeScript
-
Field Details
-
MAVEN_CLASSPATH
- See Also:
-
DEFAULT_XMX
- See Also:
-
TEMP_FILE_PREFIX
- See Also:
-
logger
-
factory
-
project
private final org.apache.tools.ant.Project project
-
-
Constructor Details
-
AntLauncher
AntLauncher(Logger logger, ScriptFactory factory)
-
-
Method Details
-
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
-
writeInto
- Throws:
IOException
-
createAntProject
private org.apache.tools.ant.Project createAntProject() -
execute
- Specified by:
executein interfaceLauncher- Overrides:
executein classAbstractLauncher- Throws:
ScriptExceptionIOException
-
execute
- Specified by:
executein interfaceLauncher- Overrides:
executein classAbstractLauncher- Throws:
ScriptExceptionIOException
-
executeIn
- Specified by:
executeInin interfaceLauncher- Overrides:
executeInin classAbstractLauncher- Throws:
ScriptExceptionIOException
-
executeIn
public void executeIn(File launchDirectory, List<String> args, File outputFile) throws ScriptException, IOException - Specified by:
executeInin interfaceLauncher- Overrides:
executeInin classAbstractLauncher- Throws:
ScriptExceptionIOException
-
executeScript
- Specified by:
executeScriptin interfaceLauncher- Overrides:
executeScriptin classAbstractLauncher- Throws:
ScriptExceptionIOException
-
executeScript
public void executeScript(String script, List<String> args, File outputFile) throws ScriptException, IOException - Specified by:
executeScriptin interfaceLauncher- Overrides:
executeScriptin classAbstractLauncher- Throws:
ScriptExceptionIOException
-
executeScript
public void executeScript(File launchDirectory, String script, List<String> args) throws ScriptException, IOException - Specified by:
executeScriptin interfaceLauncher- Overrides:
executeScriptin classAbstractLauncher- Throws:
ScriptExceptionIOException
-
executeScript
public void executeScript(File launchDirectory, String script, List<String> args, File outputFile) throws ScriptException, IOException - Throws:
ScriptExceptionIOException
-
executeScript
public void executeScript(File launchDirectory, String script, List<String> args, OutputStream outputStream) throws ScriptException, IOException - Throws:
ScriptExceptionIOException
-
addScriptArguments
-