Thanks andrea! clearly I have to do better about keeping up with the GS and GT IRC meetings.
The problems I'm having are that the first time jalopy is run on my freshly checked out source tree a number of files are formatted, and all the changes are either whitespace changes (not really a problem actually!) or foreign character changes (possibly a problem).
Here's an example:
$ svn diff src/main/java/org/vfny/geoserver/global/dto/LegendURLDTO.java
Index: src/main/java/org/vfny/geoserver/global/dto/LegendURLDTO.java
--- src/main/java/org/vfny/geoserver/global/dto/LegendURLDTO.java (revision 6210)
+++ src/main/java/org/vfny/geoserver/global/dto/LegendURLDTO.java (working copy)
@@ -12,7 +12,7 @@
* legend.setWidth(72);legend.setHeight(72);legend.setFormat("image/png");
* </code> </pre></p>
*
- * @author Charles Kolbowicz, Institut de Recherche pour le D?veloppement
+ * @author Charles Kolbowicz, Institut de Recherche pour le D?veloppement
* (IRD), 2004
* @version $Id$
*/
So is the foreign character change there valid? Am I messing up someone else's character set by my probably not well-internationalized computer doing some formatting on someone's accent egue? (or is it an accent grave?)
One more question: There's a short-term problem here in that until every file has been jalopied once, my first compile will polute my project-wide 'svn diff' with a bunch of spurious diffs. As I come across these 'not-yet-jalopied' files should I commit them unchanged (except for the jalopying)?
For example, after a 'clean install' on a fresh checkout with no changes, I get the following:
$ svn diff | grep -v pom.xml | grep Index:
Index: test/src/test/java/org/vfny/geoserver/wms/responses/map/kml/KMLWriterTest.java
Index: main/src/main/java/org/vfny/geoserver/global/dto/LegendURLDTO.java
Index: main/src/main/java/org/vfny/geoserver/global/GlobalLayerSupertype.java
Index: main/src/main/java/org/vfny/geoserver/global/GeoServerFeatureLocking.java
Index: main/src/main/java/org/vfny/geoserver/config/CoverageConfig.java
Index: main/src/main/java/org/vfny/geoserver/ExceptionHandler.java
Index: main/src/main/java/org/vfny/geoserver/util/SLDValidator.java
Index: main/src/main/java/org/mortbay/start/Classpath.java
Index: wms/src/main/java/org/vfny/geoserver/wms/responses/map/kml/KMLWriter.java
Index: wcs/src/main/java/org/vfny/geoserver/wcs/requests/readers/DescribeKvpReader.java
Index: web/src/main/java/org/vfny/geoserver/config/web/tiles/taglib/ExtResInsertTag.java
Index: web/src/main/java/org/vfny/geoserver/action/ConfigAction.java
Index: web/src/main/java/org/vfny/geoserver/action/HTMLEncoder.java
Index: web/src/main/java/org/vfny/geoserver/action/validation/ValidationRunnable.java
Should I commit these slightly-formatted files?
Just curious about policy!
--saul
-----Original Message-----
From: Andrea Aime [mailto:aaime@anonymised.com]
Sent: Thu 2/22/2007 4:58 PM
To: Farber, Saul (ENV)
Cc: geoserver-devel@lists.sourceforge.net
Subject: Re: [Geoserver-devel] Jalopy still formatting whole source tree on build
Farber, Saul (ENV) ha scritto:
Hey all,
So on my local GS 1.5.x tree jalopy is still formatting everything
whenever I do a "clean install".
I seem to remember that jalopy formatting was supposed to be on the
shoulders of a committer to run right before commit...did I miss some
emails that changed this?
Well, the original intention of GSIP #2 was to have it automatic.
We had issues, so on the first implementation we disabled it.
Since now issues seems to be solved, it's back to being automatic.
This has been discussed in a IRC meeting, if my memory serves me
well, last week.
This ensures code is always properly formatted. We do believe otherwise
no one will use it. There is enough proof in the fact that in the
timeframe jalopy was available, almost no formatting took place,
and when we run it automatically, the first times it formatted
some hundreds of files.
We hope to keep a readable code base like this. If this cause you
any trouble, let us know.
Cheers
Andrea