----- Original Message ----- From: "Erik Hatcher" <[EMAIL PROTECTED]> To: "Ant Developers List" <[EMAIL PROTECTED]> Sent: Friday, February 07, 2003 00:44 Subject: Re: unset a property of a project. > > 3. Depending on which set of unit tests fail, I want to send e-mail to > > a particular individual or group. I cannot do <property name="mail.to" > > value="[EMAIL PROTECTED]"/>, <antcall target="sendMessage"/> > > followed by <property name="mail.to" > > value="[EMAIL PROTECTED]"/>, <antcall target"sendMessage"/>. > > Instead I have to do something like <property > > name="mail.to.firstgroup" value="..."/> etc. Same logic applies to > > subject, message body, and mail server. > > This could be handled by some clever use of the ant-contrib > <propertycopy> task. (In fact, I'd like to see this task migrated to > Ant's codebase)
What is wrong with setting the mail.to property *inside the <antcall> declaration using a <param> declaration, rather than outside in <property>. The property will be immutable during its life, but its life will be somewhat shorter than usual.
