built-in function was extended to support Java's
System.err as parameters:
#!/usr/bin/jjs -fv var cmd = "mvn clean install" var System = Java.type("java.lang.System"); $EXEC(cmd, System.in, System.out, System.err);
The code above executes Maven and "streams" the output in real time into the console. With Java 9 Nashorn is even more useful for cross-platform automation of OS-level tasks.
Dockerfiles come with Nashorn script:
Web Apps, SPA, PWA with vanilla Java Script (ES 6+), CSS 3 and WebStandards only. As simple as possible, but not simpler. See you at: (Progressive) Web apps, Single Page Apps and WebStandards airhacks workshops at MUC airport, Winter Edition
airhacks.fm the podcast:
Stay in touch: airhacks.news.