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: [EMAIL PROTECTED]


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to