ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jose Alberto Fernandez" <jalbe...@cellectivity.com>
Subject RE: local properties
Date Mon, 18 Oct 2004 09:04:00 GMT
> From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de] 
> 
> 
> > >Havent got an answer to that proposal:
> > >    <local prefix="tmp"/>
> > >    <loadproperties prefix="tmp"/>
> > 
> > I do not see how it would be useful
> 
> You could use all other tasks as they are. Many tasks store 
> their result in properties. Some (like loadproperties) in 
> multiple props.
> 
> 
> > or how to implement it. :-)
> 
> - Register the "tmp" as temporary prefix on Project
> - setNewProperty() (and the other *Propert* methods) check against
>   the list of temporary props and allow overriding.
> - Project.deleteProperties(String prefix) would unset all properties
>   with the registered prefix and deregister that.
> 

Of course, in my proposal you would just do:

  <macrodef...>
    <let name="temp" />
    <sequential>

    <loadproperties prefix="$(temp)" .../>
	....
   </sequential/>
  </macrodef>

:-)

No need to modify anything, I think.

Jose Alberto

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message