You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Marcel Reutegger (JIRA)" <ji...@apache.org> on 2014/05/21 16:46:39 UTC
[jira] [Commented] (OAK-1845) Add command to execute script
[ https://issues.apache.org/jira/browse/OAK-1845?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14004724#comment-14004724 ]
Marcel Reutegger commented on OAK-1845:
---------------------------------------
Added initial support for evaluating a JavaScript file in http://svn.apache.org/r1596585
Chetan, feel free to adapt and extend...
> Add command to execute script
> -----------------------------
>
> Key: OAK-1845
> URL: https://issues.apache.org/jira/browse/OAK-1845
> Project: Jackrabbit Oak
> Issue Type: Sub-task
> Components: run
> Reporter: Chetan Mehrotra
> Assignee: Chetan Mehrotra
>
> Add a command which can execute arbitrary script
> {noformat}
> > script /path/to/script
> > script -groovy println 'Hello'
> > script print("hello")
> > script <<EOT
> println(nodeStore.getRoot())
> EOT
> {noformat}
> For the last the script would be assumed to be javascript by default. Later we can enhance the Console to read multi line string use herestring
> The ConsoleSession can be exposed as bind variable and can be used by script to access the runtime
--
This message was sent by Atlassian JIRA
(v6.2#6252)