You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Michael Dürig (JIRA)" <ji...@apache.org> on 2010/01/06 17:29:55 UTC

[jira] Created: (SLING-1274) Make Scala Scripting JSR 223 compliant

Make Scala Scripting JSR 223 compliant
--------------------------------------

                 Key: SLING-1274
                 URL: https://issues.apache.org/jira/browse/SLING-1274
             Project: Sling
          Issue Type: Improvement
          Components: Scripting
            Reporter: Michael Dürig
            Priority: Minor


As discussed [1] it would be nice if we could decouple the Scala scripting engine from Sling making it into a independent JSR 223 compliant script engine which is 'just' used by Sling.

[1] http://markmail.org/message/mkvjbuk5dfrekvqv?q=scala+another+sling

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


[jira] Updated: (SLING-1274) Make Scala Scripting JSR 223 compliant

Posted by "Michael Dürig (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-1274?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Dürig updated SLING-1274:
---------------------------------

    Attachment: SLING-1274.patch

Proposed patch.

This removes the current interpreter and engine module and adds two new modules: script and config.

The script module contains the Scala scripting engine which is now independent from Sling. Optimally I think this module should finally move out of Sling into a new, better suited home. Currently the Scala script engine has an optional dependency on javax.jcr. Since we alreay had support for running the Scala compiler of a JCR repository instead of a file system I thought it would be nice to keep the related utility classes. 

The config module is specific to Sling. It parametrizes the Scala script engine for interoperability with Sling. 

To enable Scala scripting for Sling, install the following bundles:

- org.apache.sling:org.apache.sling.scripting.scala.config
- org.apache.sling:org.apache.sling.scripting.scala.script
- org.scala-lang-osgi:scala-compiler
- org.scala-lang-osgi:scala-library

The former two bundles are in this patch. The latter two bundles can be obtained from http://scala-tools.org/repo-releases/



> Make Scala Scripting JSR 223 compliant
> --------------------------------------
>
>                 Key: SLING-1274
>                 URL: https://issues.apache.org/jira/browse/SLING-1274
>             Project: Sling
>          Issue Type: Improvement
>          Components: Scripting
>            Reporter: Michael Dürig
>            Priority: Minor
>         Attachments: SLING-1274.patch
>
>
> As discussed [1] it would be nice if we could decouple the Scala scripting engine from Sling making it into a independent JSR 223 compliant script engine which is 'just' used by Sling.
> [1] http://markmail.org/message/mkvjbuk5dfrekvqv?q=scala+another+sling

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


[jira] Closed: (SLING-1274) Make Scala Scripting JSR 223 compliant

Posted by "Michael Dürig (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-1274?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Dürig closed SLING-1274.
--------------------------------


Thanks Carsten. Works great. I could however not run the integration tests (contrib/launchpad/testing) due to SLING-1343. I'll check again later. 

> Make Scala Scripting JSR 223 compliant
> --------------------------------------
>
>                 Key: SLING-1274
>                 URL: https://issues.apache.org/jira/browse/SLING-1274
>             Project: Sling
>          Issue Type: Improvement
>          Components: Scripting
>            Reporter: Michael Dürig
>            Assignee: Carsten Ziegeler
>            Priority: Minor
>         Attachments: SLING-1274.patch
>
>
> As discussed [1] it would be nice if we could decouple the Scala scripting engine from Sling making it into a independent JSR 223 compliant script engine which is 'just' used by Sling.
> [1] http://markmail.org/message/mkvjbuk5dfrekvqv?q=scala+another+sling

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


[jira] Assigned: (SLING-1274) Make Scala Scripting JSR 223 compliant

Posted by "Carsten Ziegeler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-1274?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carsten Ziegeler reassigned SLING-1274:
---------------------------------------

    Assignee: Carsten Ziegeler

> Make Scala Scripting JSR 223 compliant
> --------------------------------------
>
>                 Key: SLING-1274
>                 URL: https://issues.apache.org/jira/browse/SLING-1274
>             Project: Sling
>          Issue Type: Improvement
>          Components: Scripting
>            Reporter: Michael Dürig
>            Assignee: Carsten Ziegeler
>            Priority: Minor
>         Attachments: SLING-1274.patch
>
>
> As discussed [1] it would be nice if we could decouple the Scala scripting engine from Sling making it into a independent JSR 223 compliant script engine which is 'just' used by Sling.
> [1] http://markmail.org/message/mkvjbuk5dfrekvqv?q=scala+another+sling

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


[jira] Resolved: (SLING-1274) Make Scala Scripting JSR 223 compliant

Posted by "Carsten Ziegeler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-1274?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carsten Ziegeler resolved SLING-1274.
-------------------------------------

    Resolution: Fixed

Thanks for your patch, Michael! I've applied it in revision 905388

> Make Scala Scripting JSR 223 compliant
> --------------------------------------
>
>                 Key: SLING-1274
>                 URL: https://issues.apache.org/jira/browse/SLING-1274
>             Project: Sling
>          Issue Type: Improvement
>          Components: Scripting
>            Reporter: Michael Dürig
>            Assignee: Carsten Ziegeler
>            Priority: Minor
>         Attachments: SLING-1274.patch
>
>
> As discussed [1] it would be nice if we could decouple the Scala scripting engine from Sling making it into a independent JSR 223 compliant script engine which is 'just' used by Sling.
> [1] http://markmail.org/message/mkvjbuk5dfrekvqv?q=scala+another+sling

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