Tuesday, November 28, 2006

Javax scripting for ant 1.7.0

It looks like I am be able to persuade my ant
collegues to have javax.scripting in ant 1.7.0.

There are two options to specify javax.scripting
rather than bsf, have an extra attribute on the script
task:
<script language="javascript" engine="jsr">
print("hello world\n");
</script>
or use a prefix in the language tag:
<script language="jsr:javascript">
print("hello world\n");
</script>

The nice thing is that with this, one can use
javascript scripting in ant with java6 *without* any configuration.

No comments: