ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran" <stev...@iseran.com>
Subject Re: unset a property of a project.
Date Mon, 10 Feb 2003 05:59:07 GMT

----- Original Message -----
From: "Erik Hatcher" <jakarta-ant@ehatchersolutions.com>
To: "Ant Developers List" <ant-dev@jakarta.apache.org>
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="firstgroup@somewhere.com"/>, <antcall target="sendMessage"/>
> > followed by <property name="mail.to"
> > value="secondgroup@somewhere.com"/>, <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.


Mime
View raw message