ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 36910] New: - self not defined for task scripts / scriptdef
Date Tue, 04 Oct 2005 11:59:18 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=36910>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36910

           Summary: self not defined for task scripts / scriptdef
           Product: Ant
           Version: 1.6.5
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: FixedInTrunk
          Severity: normal
          Priority: P3
         Component: Optional Tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: egoine_asfbugzilla@egoine.org


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.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message