[ 
https://issues.apache.org/jira/browse/SLING-1423?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bertrand Delacretaz resolved SLING-1423.
----------------------------------------

       Resolution: Fixed
    Fix Version/s: JCR Resource 2.0.8
         Assignee: Bertrand Delacretaz

Integration tests added in revision 918519.

Scripts can now be executed as StandaloneScriptExecutionServlet.doGet() [1].

[1] 
http://svn.apache.org/repos/asf/sling/trunk/launchpad/test-services/src/main/java/org/apache/sling/launchpad/testservices/scripting/StandaloneScriptExecutionServlet.java

> Simplify Standalone script execution
> ------------------------------------
>
>                 Key: SLING-1423
>                 URL: https://issues.apache.org/jira/browse/SLING-1423
>             Project: Sling
>          Issue Type: Improvement
>          Components: Scripting
>            Reporter: Bertrand Delacretaz
>            Assignee: Bertrand Delacretaz
>            Priority: Minor
>             Fix For: JCR Resource 2.0.8
>
>
> Executing a Sling script in standalone mode (i.e. without request/response) 
> should be as simple as:
> Resource = ...
> SlingScript script = resource.adaptTo(SlingScript.class);
> SlingBindings bindings = new SlingBindings();
> ...add values to bindings
> script.eval(bindings);
> Currently this does not work, and we should add tests for that once it works.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to