Stuart McCulloch schrieb:

>> For example, the first version of the m2eclipse POM editor would remove all
>> comments after "Add dependency". That's not cool. Those comments contained
>> references to web pages and explanations why some stuff was set up "oddly".
> 
> yeah, I hate it when an editor zaps all the intermediate comments and
> whitespace - that's why in the past I've used a modified version of the
> plexus XML parser that preserves comments and maintains consistent
> indentation levels:  (although it definitely doesn't preserve 100%)
> 
> http://www.ops4j.org/projects/pax/construct/maven-pax-plugin/xref/org/ops4j/pax/construct/util/RoundTripXml.html
> 
> bit hacky, but was good enough for my purposes at the time :)

That was the first time I thought about writing my own XML parser but
only when I need to replace the parent version in 200 POM files, I
actually started to do it.

Regards,

-- 
Aaron "Optimizer" Digulla a.k.a. Philmann Dark
"It's not the universe that's limited, it's our imagination.
Follow me and I'll show you something beyond the limits."
http://darkviews.blogspot.com/          http://www.pdark.de/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to