Skip to content

Instantly share code, notes, and snippets.

@jgoldhammer
Last active October 17, 2016 21:18
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 jgoldhammer/77feac7db51a8bfba0033625108bf029 to your computer and use it in GitHub Desktop.
Save jgoldhammer/77feac7db51a8bfba0033625108bf029 to your computer and use it in GitHub Desktop.
example for the scriptwriter (can only be executed in js-console)
fileWriter.createFile();
fileWriter.appendLine("Hello");
var logfile = fileWriter.persist(
"Test"+java.lang.System.nanoTime(),
repository.getCompanyHome(),
"text/plain",
"cm:content",
false);
print(logfile.content);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment