You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Ovidiu Predescu <ov...@apache.org> on 2002/04/04 07:52:51 UTC

Re: [PATCH] uniform expansion of properties across tasks

Here is an updated version of the previous patch. It changes even more tasks to
replace properties that appear in attributes and text nodes at runtime, instead
of tree construction time.

By looking at the code it appears there are many more tasks that need to be
reviewed for similar behavior.

You can apply the patch by cd-ing in the jakarta-ant directory and running

patch -p0 <ant.diff

Please let me know of any problems you see with the patch.

Best regards,
Ovidiu

On Tue, 02 Apr 2002 19:41:22 -0800, Ovidiu Predescu <ov...@apache.org> wrote:

> Hi,
> 
> The latest Ant from main trunk CVS treats properties in different ways
> depending on the target.
> 
> Some of the tasks expand the properties in a value as soon as the node
> is created. Other tasks defer this expansion until the task is
> executed. The later approach has the advantage of allowing tasks that
> execute before, to change the value of properties in tasks that
> follow.
> 
> The following patch fixes the problem, by providing a uniform
> treatment of properties across all the tasks. In the new behavior, the
> properties value is replaced at execution time, rather than at
> initialization time.
> 
> Best regards,
> Ovidiu