Skip to content

Instantly share code, notes, and snippets.

@aJanuary
Created March 6, 2015 12:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aJanuary/7373be9c96b76d2fe480 to your computer and use it in GitHub Desktop.
Save aJanuary/7373be9c96b76d2fe480 to your computer and use it in GitHub Desktop.
ScriptingContainer container = new ScriptingContainer(LocalContextScope.SINGLETHREAD, LocalVariableBehavior.PERSISTENT);
ByteArrayOutputStream stdout = new ByteArrayOutputStream();
PrintStream ps = new PrintStream(stdout);
container.setOutput(ps);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment