ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Donald <dona...@apache.org>
Subject Re: [Patch] Target attribute property expansion
Date Thu, 05 Jul 2001 06:48:32 GMT
On Wed,  4 Jul 2001 23:48, Stefan Bodewig wrote:
> > For what I saw of the patch, it assumes that properties will be
> > evaluated as they are parsed. Since as you say it preserves DAG
> > being created at parsing time. That would mean that we will be stuck
> > on having to execute <property> directives while we parse, instead
> > of in an initialization phase. Am I wrong in my understanding?
>
> Either that or construct the DAG after that initialization phase
> (where initialization phase would execute all tasks that have not been
> wrapped into targets, if they exist).

I actually think that we should do lazy evaluation of the DAG. ie only look 
up next element in DAG as we "get" to it. This is for two reasons mainly;

1. Support crazy self-modifying projects like Jose wanted
2. Not force the loading of all project files at startup
3. Cutdown on redundent scanning at start that is not needed and costly in 
large projects

Cheers,

Pete

*-----------------------------------------------------*
| "Faced with the choice between changing one's mind, |
| and proving that there is no need to do so - almost |
| everyone gets busy on the proof."                   |
|              - John Kenneth Galbraith               |
*-----------------------------------------------------*

Mime
View raw message