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 41602] New: - Ant jython attributes are not thread-safe
Date Tue, 13 Feb 2007 20:45:44 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=41602>.
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=41602

           Summary: Ant jython attributes are not thread-safe
           Product: Ant
           Version: 1.7.0RC1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
        AssignedTo: dev@ant.apache.org
        ReportedBy: josborne@exstream.com


ant attributes do not appear to be thread safe with jython.  See the following 
script for an example:

<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="main" name="thread-test">

  <target name="main">
        <parallel failonany='false'>
          <threadtest key="one"></threadtest>
          <threadtest key="two"></threadtest>
          <threadtest key="three"></threadtest>
          <threadtest key="four"></threadtest>
        </parallel>
  </target>

  <scriptdef name="threadtest" language="jython">
       <attribute name="key"/>
<![CDATA[
key = attributes['key']
project.log("threadtest called with key: " + key)
]]>
  </scriptdef>

</project>

-- 
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