You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2020/05/26 16:10:29 UTC

[Bug 64469] Ant build.xml fails with "Unable to create javax script engine for javascript" with latest JDK 15 due to removal of Nashorn

https://bz.apache.org/bugzilla/show_bug.cgi?id=64469

--- Comment #1 from Stefan Bodewig <bo...@apache.org> ---
When I disabled the script tests for JDK 15+ I very quickly looked into using
grall,js instead - but it seemed to involve quite a bit more than I was willing
to chew on back then. Any helo is much appreciated.

BSF seems to be more or less dead - it has become part of the Apache Commons
Project but the last commit that changed anything but infrastructure stuff has
happened more than five years ago.

I believe, even when using graal.js the Ant ScriptRunner's "manager" should
still be "javax" as this is the API we are using. AFAIU graal.js is the
"language" you need to set. At least this is from a cursory glance at the
migration guide you link to. We call "createEngine" here
https://github.com/apache/ant/blob/master/src/main/org/apache/tools/ant/util/optional/JavaxScriptRunner.java#L193

-- 
You are receiving this mail because:
You are the assignee for the bug.