ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Now Enabling Nashorn Compatibility
Date Fri, 25 Sep 2020 19:21:34 GMT
Hi all

things weren't as easy as I had hoped. You cannot enable Nashorn
compatibility via javax.scriptiong bindings, only two options have been

* set a system property before creating the engine

* add extra code that depends on Graal and create the ScriptEngine via
  Graal's constructor rather than ScriptEngineManager

I've decided to take the sysproperty approach, even though this means
you cannot revert the decision once you've created your first
engine. This turned out to be challenging for tests as I had to fork the
tests independent of each other.

I'll cut a release candidate this weekend and start a vote, please vote
with -1 if you feel this apporach is wrong (or speak up before I start
the vote thread if you happen to find the time).


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message