Skip to content

Instantly share code, notes, and snippets.

@metafeather
Last active February 5, 2022 18:16
Show Gist options
  • Save metafeather/483022 to your computer and use it in GitHub Desktop.
Save metafeather/483022 to your computer and use it in GitHub Desktop.
Compile JS files to Java byte code in Ant
<!-- compile JS files to Java byte code in Ant -->
<java classname="org.mozilla.javascript.tools.jsc.Main" classpathref="rhino.class.path" fork="yes">
<arg value="-debug"/>
<arg value="${basedir}/file/1.js"/>
<arg value="${basedir}/file/2.js"/>
</java>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment