nextflow-io / cwl2nxf

Import a CWL workflow specification to Nextflow script (experimental)
Apache License 2.0
27 stars 5 forks source link

Nashorn JavaScript engine #1

Closed pditommaso closed 7 years ago

pditommaso commented 7 years ago

It turns out that Java 8 includes the Nashorn JavaScript engine (!)

For example:

import javax.script.ScriptEngine;
import javax.script.ScriptEngineManager;

ScriptEngineManager factory = new ScriptEngineManager();
ScriptEngine engine = factory.getEngineByName("nashorn");
engine.eval('print("Hello JavaScript world!");');
pditommaso commented 7 years ago

Something to give a try next week @KevinSayers

KevinSayers commented 7 years ago

:+1: