![JAR search and dependency download from the Maven repository](/logo.png)
org.devcake.groovy.remoteconsole.DefaultScriptExecutionProcessor.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of remoteconsole-groovy Show documentation
Show all versions of remoteconsole-groovy Show documentation
The library allows to create remote console server easily, and run Groovy scripts remotely on the console server.
It supports execution of parts of the script, with all import statements applied.
The library can be used as a standalone remote console server, and as embedded console server.
It contains default implementaiton of Remote Console client, whereas customized implementation is also available.
package org.devcake.groovy.remoteconsole
/**
* Created by IntelliJ IDEA.
* User: Admin
* Date: 30.08.2010
* Time: 4:14:32
* To change this template use File | Settings | File Templates.
*/
class DefaultScriptExecutionProcessor implements ScriptExecutionProcessor {
private def outputLines = []
private def outputErrorLines = []
private def errorLines = []
private def resultLines = []
void startOutput() {
//To change body of implemented methods use File | Settings | File Templates.
}
void processOutputLine(String outputLine) {
outputLines << outputLine
}
void processOutputErrorLine(String outputErrorLine) {
outputErrorLines << outputErrorLine
}
void endOutput() {
//To change body of implemented methods use File | Settings | File Templates.
}
void startError() {
//To change body of implemented methods use File | Settings | File Templates.
}
void processErrorLine(String errorLine) {
errorLines << errorLine
}
void endError() {
//To change body of implemented methods use File | Settings | File Templates.
}
void startResult() {
//To change body of implemented methods use File | Settings | File Templates.
}
void processResultLine(String resultLine) {
resultLines << resultLine
}
void endResult() {
//To change body of implemented methods use File | Settings | File Templates.
}
String getOutputText() {
outputLines.join('\n')
}
String getOutputErrorText() {
outputErrorLines.join('\n')
}
String getErrorText() {
errorLines.join('\n')
}
String getResultText() {
resultLines.join('\n')
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy