Re: advanced property configuration

[email protected]
Newsgroups gmane.comp.krysalis.devel
Message-ID <[email protected]>
> Nicola Ken Barozzi wrote:
> 
> Michael Homeijer wrote:
>  
>  > I am going to use centipede (or is it going to be AntWorks? or ..) for a 
>  > company build environment.
>  > To support deployment and compilation of an application for development, 
>  > test, acceptance testing, production we need more advanced property 
>  > configuration than the XmlProperty task.
>  
>  There is another task that makes it possible to read a property file and 
>  getting valies via xpath, that is much more powerful. What is the extra 
>  part that you need? Maybe we can simply patch the xmlproperty task (that 
>  BTW originated here with Centipede).
>  
Is the task you are talking about available, or is it the 'embed' proposal the is referred
to at the wiki?
Because I couldn't find the jxpath: property implementation I have implemented a
workaround. In the init antlet, I have translated the module.xml to an ant build that
contains the right properties and their xpath value (see module2properties in the init
antlet).

This solution would probably even better to use to transform the properties.xml to remove
all nodes that are tagged with the wrong environment attribute or something.

Thnx for the idea. I'll try to come up with a sample.

Michael


>  -- 
>  Nicola Ken Barozzi                   nicolaken@ap...
>               - verba volant, scripta manent -
>      (discussions get forgotten, just code remains)
> 
---------------------------------------------------------------------



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.