On Thu, Sep 02, 2004 at 09:18:31AM -0400, Patrick Mueller wrote:
> Jacek Laskowski wrote:
> >Awesome! I really like the idea of using the entity references. I have 
> >seen it the first time in OpenEJB2 (I guess it was Dave who made the 
> >changes) and I was deeply entertained.
> 

> I've been burned on this kind of thing way too many times, with
> folks using either lamo parsers or even just regex's to read XML
> files.  I gave up.

Regex XML parsing... yikes. 

> Although ... one thing I have done is to make use of Ant's replace bits 
> to sort of simulate this.  Keep a 'template' with a 'macro' in it in 
> some kind of a template directory, then generate the real file from the 
> template and a value for the macros.  

Actually we are working towards that.  We'd like to be able to
manipulate the version-info.ent file at release time to dynamically
switch all the SNAPSHOT versions to their real versions, check that
file in, tag cvs, then roll the file back.

Consolodating all the version information into one file is the first
step as keeping templates of all our build files and j2ee-*-plan.xml
files would be a total nightmare.

-David


Reply via email to