Chetan Mehrotra created OAK-1845:
------------------------------------

             Summary: 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)

Reply via email to