Jose Alberto Fernandez wrote:

For example, the usage of ThreadLocals in other
proposals may be right for some things, but it may be wrong if I am
trying to use properties to communicate between threads. (Which I can do
with regular properties).



You are correct.
Using the following:

<macrodef name="x">
  <localproperty name="aprop"/>
  <sequential>
     <parallel>
         <sequential>
             <property name="aprop" value="set"/>
             <echo>aprop is ${aprop}</echo>
          </sequential>
     </parallel>
     <echo>aprop is ${aprop}</echo>
  </sequential>
</macrodef>

One would expect that this macro would produce
[echo] aprop is set
[echo] aprop is set

rather than
[echo] aprop is set
[echo] aprop is ${aprop}

I am modifying the local patch code to do this.

Peter


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to