You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Bertrand Delacretaz (JIRA)" <ji...@apache.org> on 2010/03/03 15:36:27 UTC

[jira] Created: (SLING-1423) Simplify Standalone script execution

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
            Priority: Minor


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.


Re: [jira] Created: (SLING-1423) Simplify Standalone script execution

Posted by Bertrand Delacretaz <bd...@apache.org>.
Hi,

On Wed, Mar 3, 2010 at 3:44 PM, Felix Meschberger <fm...@gmail.com> wrote:
> Isn't the "does not work" related to SLING-1422 [1] ?

Yes, there was that and another minor problem fixed in revision 918488.

Writing a simple integration test for that now.
-Bertrand

Re: [jira] Created: (SLING-1423) Simplify Standalone script execution

Posted by Felix Meschberger <fm...@gmail.com>.
Hi,

Isn't the "does not work" related to SLING-1422 [1] ?

Regards
Felix

[1] https://issues.apache.org/jira/browse/SLING-1422

On 03.03.2010 15:36, Bertrand Delacretaz (JIRA) wrote:
> 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
>             Priority: Minor
> 
> 
> 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.
> 
> 

[jira] Resolved: (SLING-1423) Simplify Standalone script execution

Posted by "Bertrand Delacretaz (JIRA)" <ji...@apache.org>.
     [ 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.