I cannot write a task like: <scriptdef name="bla" language="javascript" > <attribute name="message"/> <![CDATA[ self.log(attributes.get("message")); ]]> </scriptdef> Because self is not defined. I just checked again and altought there is a fix in the ant CVS tree, it is only on the main branch and not on the 1.6.X branch so it hasn't yet been part of any official release: Main, fix fix as last revision: http://svn.apache.org/viewcvs.cgi/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/script/ScriptDefBase.java?rev=276682&view=log 1.6 branch, lacking the fix: http://svn.apache.org/viewcvs.cgi/ant/core/branches/ANT_16_BRANCH/src/main/org/apache/tools/ant/taskdefs/optional/script/ScriptDefBase.java?rev=276209&view=log So this bug is a request that the fix be merged into the 1.6 branch. (I wonder if other fixes also got left behind on the main branch.
Fixes in the head normally are *not* back-ported to the 1.6 branch