On Mar 13, 2008, at 7:21 AM, Jason Dillon wrote:
-1. I don't think there is any value in making the indent for xml
or any other files different than the normal indent for all other
files.
Let me give a couple of examples where the 4-space indent causes a
lot of pain and will continue to:
- in genesis geronimo-skin we have a site.vm file that is a slightly
modified copy of the default .vm file from doxia-sitetools. Trying
to update it or compare it with different indents is quite an
experience.
- maven archetypes pop out xml with 2 space indenting, and maven xml
has 2 space indenting. Re-indenting our stuff any time you run an
archetype or borrow some configuration from maven is a nuisance that
frequently is ignored and again the spacing difference makes
comparison quite difficult.
Do you have an editor that can't deal with different indents for
different file types?
thanks
david jencks
--jason
On Mar 13, 2008, at 6:34 AM, David Jencks wrote:
IIUC we have a coding standard of a 4 space indent for all files
(documented at http://cwiki.apache.org/GMOxDEV/coding-
standards.html). This can make working with maven difficult
because its files and xml output generatiion use 2 space indent
for xml and .vm files.
I think we could make life a lot easier when using maven tooling
to use a 2 space indent for xml and .vm and possibly other files.
At least with IDEA its easy to have different indents for java and
xml files.
Comments?
thanks
david jencks