| @@ -26,13 +26,17 @@ | |||||
| </description> | </description> | ||||
| <condition property="prereqs-ok"> | <condition property="prereqs-ok"> | ||||
| <or> | |||||
| <and> | |||||
| <available classname="org.apache.bsf.BSFManager" /> | |||||
| <available classname="org.apache.bsf.engines.javascript.JavaScriptEngine" /> | |||||
| </and> | |||||
| <available classname="javax.script.ScriptEngineManager" /> | |||||
| </or> | |||||
| <and> | |||||
| <!-- Starting Java 15, there's no "javascript" script engine (not even nashorn) bundled in JRE --> | |||||
| <javaversion atmost="14"/> | |||||
| <or> | |||||
| <and> | |||||
| <available classname="org.apache.bsf.BSFManager" /> | |||||
| <available classname="org.apache.bsf.engines.javascript.JavaScriptEngine" /> | |||||
| </and> | |||||
| <available classname="javax.script.ScriptEngineManager" /> | |||||
| </or> | |||||
| </and> | |||||
| </condition> | </condition> | ||||
| <!-- auto doesn't verify the language is supported and selects BSF | <!-- auto doesn't verify the language is supported and selects BSF | ||||