File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
src/main/java/org/restflow/python Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 1
1
package org .restflow .python ;
2
2
3
+ import java .io .IOException ;
4
+
3
5
import org .restflow .actors .ActorScriptBuilder ;
4
6
import org .restflow .actors .AugmentedScriptActor ;
5
7
@@ -33,6 +35,11 @@ public static class ScriptBuilder implements ActorScriptBuilder {
33
35
protected StringBuilder _script = new StringBuilder ();
34
36
private final static String EOL = System .getProperty ("line.separator" );
35
37
38
+ public ActorScriptBuilder append (String text ) {
39
+ _script .append ( text );
40
+ return this ;
41
+ }
42
+
36
43
public ActorScriptBuilder appendCode (String code ) {
37
44
_script .append ( code )
38
45
.append ( EOL );
@@ -250,7 +257,7 @@ public String toString() {
250
257
251
258
@ Override
252
259
public void appendScriptHeader (ActorScriptBuilder script ,
253
- String scriptType ) {
260
+ String scriptType ) throws IOException {
254
261
255
262
appendComment ("import packages required by all python actors" );
256
263
appendCode ( "import os, json" );
You can’t perform that action at this time.
0 commit comments