You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Jesse Glick <je...@oracle.com> on 2011/11/16 04:23:35 UTC

javax.script (was: [VOTE] Apache Maven Script Interpreter 1.0)

Did you consider using the standard javax.script.* API instead of some or all of these interfaces? That would permit automatic support for many languages by just dropping 
the JAR with the (non-Maven-specific) META-INF/services/javax.script.ScriptEngineFactory into the classpath/realm, and offers richer features such as precompilation.

The API is part of Java 6 but could easily be packaged as a standalone artifact for use with Java 5. Rhino (JS) is available automatically in JDK 6+.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: javax.script (was: [VOTE] Apache Maven Script Interpreter 1.0)

Posted by Olivier Lamy <ol...@apache.org>.
Good idea to use this javax.script.* API.
IMHO Something to change for next release.

2011/11/16 Jesse Glick <je...@oracle.com>:
> Did you consider using the standard javax.script.* API instead of some or
> all of these interfaces? That would permit automatic support for many
> languages by just dropping the JAR with the (non-Maven-specific)
> META-INF/services/javax.script.ScriptEngineFactory into the classpath/realm,
> and offers richer features such as precompilation.
>
> The API is part of Java 6 but could easily be packaged as a standalone
> artifact for use with Java 5. Rhino (JS) is available automatically in JDK
> 6+.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>



-- 
Olivier Lamy
Talend: http://coders.talend.com
http://twitter.com/olamy | http://linkedin.com/in/olamy

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org