Author: doll
Date: Fri May  9 09:16:59 2008
New Revision: 654871

URL: http://svn.apache.org/viewvc?rev=654871&view=rev
Log:
SHINDIG-237
Patch from Vincent Siveton. Adds a script to generate a committers file from 
the java pom.xml. Cleans up the pom.xml to have the right people noted and 
checks in the first generated file. 



Added:
    incubator/shindig/trunk/COMMITTERS
    incubator/shindig/trunk/etc/to-committers.xsl
Modified:
    incubator/shindig/trunk/pom.xml

Added: incubator/shindig/trunk/COMMITTERS
URL: 
http://svn.apache.org/viewvc/incubator/shindig/trunk/COMMITTERS?rev=654871&view=auto
==============================================================================
--- incubator/shindig/trunk/COMMITTERS (added)
+++ incubator/shindig/trunk/COMMITTERS Fri May  9 09:16:59 2008
@@ -0,0 +1,30 @@
+The following people have commit access to the Shindig sources.
+Note that this is not a full list of Shindig's authors, however --
+for that, you'd need to look over the log messages to see all the
+patch contributors.
+
+If you have a question or comment, it's probably best to mail
[EMAIL PROTECTED], rather than mailing any of these
+people directly.
+
+Blanket commit access:
+
+           brianm      Brian McCallister   [EMAIL PROTECTED]        PMC Member
+          chabotc      Chris Chabot        [EMAIL PROTECTED]       PMC Member
+         dbentley      Daniel Bentley      [EMAIL PROTECTED]      PMC Member
+             doll      Cassie Doll         [EMAIL PROTECTED]          PMC 
Member
+             etnu      Kevin Brown         [EMAIL PROTECTED]          PMC 
Member
+             evan      Evan Gilbert        [EMAIL PROTECTED]          PMC 
Member
+            johnh      John Hjelmstad      [EMAIL PROTECTED]         PMC Member
+            jyang      Jun Yang            [EMAIL PROTECTED]         PMC Member
+          lindner      Paul Lindner        [EMAIL PROTECTED]       PMC Member
+            lryan      Louis Ryan          [EMAIL PROTECTED]         PMC Member
+          martint      Martin Traverso     [EMAIL PROTECTED]       PMC Member
+             zhen      Zhen Wang           [EMAIL PROTECTED]          PMC 
Member
+             fitz      Brian Fitzpatrick   [EMAIL PROTECTED]          Mentor   
 
+           gstein      Greg Stein          [EMAIL PROTECTED]        Mentor    
+            sgala      Santiago Gala       [EMAIL PROTECTED]       Mentor    
+          sylvain      Sylvain Wallez      [EMAIL PROTECTED]       Mentor    
+            tomdz      Thomas Dudziak      [EMAIL PROTECTED]         Mentor    
+        upayavira      Upayavira           [EMAIL PROTECTED]     Mentor    
+        dharkness      David Harkness      [EMAIL PROTECTED]     Emeritus  
\ No newline at end of file

Added: incubator/shindig/trunk/etc/to-committers.xsl
URL: 
http://svn.apache.org/viewvc/incubator/shindig/trunk/etc/to-committers.xsl?rev=654871&view=auto
==============================================================================
--- incubator/shindig/trunk/etc/to-committers.xsl (added)
+++ incubator/shindig/trunk/etc/to-committers.xsl Fri May  9 09:16:59 2008
@@ -0,0 +1,110 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+-->
+
+<!-- ====================================================================== -->
+<!-- XSL to extract developers from a Maven pom.xml                         -->
+<!-- ====================================================================== -->
+<xsl:stylesheet version="1.1"
+    xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
+    xmlns="http://maven.apache.org/POM/4.0.0";
+    xmlns:mvn="http://maven.apache.org/POM/4.0.0"; 
exclude-result-prefixes="mvn">
+
+  <xsl:output method="text" encoding="UTF-8"/>
+
+  <xsl:template match="/">
+    <xsl:text>The following people have commit access to the Shindig sources.
+Note that this is not a full list of Shindig's authors, however --
+for that, you'd need to look over the log messages to see all the
+patch contributors.
+
+If you have a question or comment, it's probably best to mail
[EMAIL PROTECTED], rather than mailing any of these
+people directly.
+
+Blanket commit access:&#xa;</xsl:text>
+    <xsl:apply-templates select="mvn:project/mvn:developers/mvn:developer" />
+  </xsl:template>
+
+  <xsl:template match="mvn:developer">
+    <xsl:text>&#xa;&#x9;</xsl:text>
+    <xsl:call-template name="leftPad">
+      <xsl:with-param name="input" select="mvn:id"/>
+      <xsl:with-param name="maxSize" select="number(10)"/>
+    </xsl:call-template>
+    <xsl:text>&#x9;</xsl:text>
+    <xsl:call-template name="rightPad">
+      <xsl:with-param name="input" select="mvn:name"/>
+      <xsl:with-param name="maxSize" select="number(20)"/>
+    </xsl:call-template>
+    <xsl:call-template name="rightPad">
+      <xsl:with-param name="input" select="mvn:email"/>
+      <xsl:with-param name="maxSize" select="number(25)"/>
+    </xsl:call-template>
+    <xsl:call-template name="rightPad">
+      <xsl:with-param name="input" select="normalize-space(mvn:roles)"/>
+      <xsl:with-param name="maxSize" select="number(10)"/>
+    </xsl:call-template>
+  </xsl:template>
+
+  <!-- String Utilities -->
+
+  <xsl:template name="rightPad">
+    <xsl:param name="input" select="string('')"/>
+    <xsl:param name="maxSize" select="0"/>
+    <xsl:variable name="diff" select="$maxSize - string-length($input)" />
+    <xsl:choose>
+      <xsl:when test="$diff &lt; 0" >
+        <xsl:value-of select="$input"/>
+      </xsl:when>
+      <xsl:otherwise>
+        <xsl:value-of select="$input"/>
+        <xsl:call-template name="space"><xsl:with-param name="repeat" 
select="$diff"/></xsl:call-template>
+      </xsl:otherwise>
+    </xsl:choose>
+  </xsl:template>
+
+  <xsl:template name="space">
+    <xsl:param name="repeat">0</xsl:param>
+    <xsl:param name="fillchar" select="' '"/>
+    <xsl:if test="number($repeat) >= 1">
+      <xsl:call-template name="space">
+        <xsl:with-param name="repeat" select="$repeat - 1"/>
+        <xsl:with-param name="fillchar" select="$fillchar"/>
+      </xsl:call-template>
+      <xsl:value-of select="$fillchar"/>
+    </xsl:if>
+  </xsl:template>
+
+  <xsl:template name="leftPad">
+    <xsl:param name="input" select="string('')"/>
+    <xsl:param name="maxSize" select="0"/>
+    <xsl:variable name="diff" select="$maxSize - string-length($input)" />
+    <xsl:choose>
+      <xsl:when test="$diff &lt; 0" >
+        <xsl:value-of select="$input"/>
+      </xsl:when>
+      <xsl:otherwise>
+        <xsl:call-template name="space"><xsl:with-param name="repeat" 
select="$diff"/></xsl:call-template>
+        <xsl:value-of select="$input"/>
+      </xsl:otherwise>
+    </xsl:choose>
+  </xsl:template>
+</xsl:stylesheet>
\ No newline at end of file

Modified: incubator/shindig/trunk/pom.xml
URL: 
http://svn.apache.org/viewvc/incubator/shindig/trunk/pom.xml?rev=654871&r1=654870&r2=654871&view=diff
==============================================================================
--- incubator/shindig/trunk/pom.xml (original)
+++ incubator/shindig/trunk/pom.xml Fri May  9 09:16:59 2008
@@ -82,8 +82,10 @@
   <!-- ====================================================================== 
-->
   <!-- P E O P L E                                                            
-->
   <!-- ====================================================================== 
-->
-  <!-- Developers listed by PMC Chair, PMC, Committers, Contributers, all 
alphabetical-->
+  <!-- Developers listed by PMC Chair, PMC, Mentors, Committers, Contributers, 
all alphabetical-->
   <developers>
+    <!-- PMC Chair -->
+    <!-- PMC -->
     <developer>
       <id>brianm</id>
       <name>Brian McCallister</name>
@@ -94,36 +96,18 @@
       </roles>
     </developer>
     <developer>
-      <id>bstoler</id>
-      <name>Brian Stoler</name>
-      <email>[EMAIL PROTECTED]</email>
+      <id>chabotc</id>
+      <name>Chris Chabot</name>
+      <email>[EMAIL PROTECTED]</email>
       <organization>ASF</organization>
       <roles>
         <role>PMC Member</role>
       </roles>
     </developer>
     <developer>
-      <id>dcoker</id>
-      <name>Doug Coker</name>
-      <email>[EMAIL PROTECTED]</email>
-      <organization>ASF</organization>
-      <roles>
-        <role>PMC Member</role>
-      </roles>
-    </developer>
-    <developer>
-      <id>dglazer</id>
-      <name>David Glazer</name>
-      <email>[EMAIL PROTECTED]</email>
-      <organization>ASF</organization>
-      <roles>
-        <role>PMC Member</role>
-      </roles>
-    </developer>
-    <developer>
-      <id>dharkness</id>
-      <name>David Harkness</name>
-      <email>[EMAIL PROTECTED]</email>
+      <id>dbentley</id>
+      <name>Daniel Bentley</name>
+      <email>[EMAIL PROTECTED]</email>
       <organization>ASF</organization>
       <roles>
         <role>PMC Member</role>
@@ -157,15 +141,6 @@
       </roles>
     </developer>
     <developer>
-      <id>gfs</id>
-      <name>Graham Spencer</name>
-      <email>[EMAIL PROTECTED]</email>
-      <organization>ASF</organization>
-      <roles>
-        <role>PMC Member</role>
-      </roles>
-    </developer>
-    <developer>
       <id>johnh</id>
       <name>John Hjelmstad</name>
       <email>[EMAIL PROTECTED]</email>
@@ -175,24 +150,6 @@
       </roles>
     </developer>
     <developer>
-      <id>jpanzer</id>
-      <name>John Panzer</name>
-      <email>[EMAIL PROTECTED]</email>
-      <organization>ASF</organization>
-      <roles>
-        <role>PMC Member</role>
-      </roles>
-    </developer>
-    <developer>
-      <id>jregan</id>
-      <name>Jeff Regan</name>
-      <email>[EMAIL PROTECTED]</email>
-      <organization>ASF</organization>
-      <roles>
-        <role>PMC Member</role>
-      </roles>
-    </developer>
-    <developer>
       <id>jyang</id>
       <name>Jun Yang</name>
       <email>[EMAIL PROTECTED]</email>
@@ -229,25 +186,79 @@
       </roles>
     </developer>
     <developer>
-      <id>ramani</id>
-      <name>Ramkumar Ramani</name>
-      <email>[EMAIL PROTECTED]</email>
+      <id>zhen</id>
+      <name>Zhen Wang</name>
+      <email>[EMAIL PROTECTED]</email>
       <organization>ASF</organization>
       <roles>
         <role>PMC Member</role>
       </roles>
     </developer>
+    <!-- Mentors -->
+    <developer>
+      <id>fitz</id>
+      <name>Brian Fitzpatrick</name>
+      <email>[EMAIL PROTECTED]</email>
+      <organization>ASF</organization>
+      <roles>
+        <role>Mentor</role>
+      </roles>
+    </developer>
+    <developer>
+      <id>gstein</id>
+      <name>Greg Stein</name>
+      <email>[EMAIL PROTECTED]</email>
+      <organization>ASF</organization>
+      <roles>
+        <role>Mentor</role>
+      </roles>
+    </developer>
+    <developer>
+      <id>sgala</id>
+      <name>Santiago Gala</name>
+      <email>[EMAIL PROTECTED]</email>
+      <organization>ASF</organization>
+      <roles>
+        <role>Mentor</role>
+      </roles>
+    </developer>
+    <developer>
+      <id>sylvain</id>
+      <name>Sylvain Wallez</name>
+      <email>[EMAIL PROTECTED]</email>
+      <organization>ASF</organization>
+      <roles>
+        <role>Mentor</role>
+      </roles>
+    </developer>
     <developer>
       <id>tomdz</id>
       <name>Thomas Dudziak</name>
       <email>[EMAIL PROTECTED]</email>
       <organization>ASF</organization>
       <roles>
-        <role>PMC Member</role>
+        <role>Mentor</role>
+      </roles>
+    </developer>
+    <developer>
+      <id>upayavira</id>
+      <name>Upayavira</name>
+      <email>[EMAIL PROTECTED]</email>
+      <organization>ASF</organization>
+      <roles>
+        <role>Mentor</role>
+      </roles>
+    </developer>
+    <developer>
+      <id>dharkness</id>
+      <name>David Harkness</name>
+      <email>[EMAIL PROTECTED]</email>
+      <organization>ASF</organization>
+      <roles>
+        <role>Emeritus</role>
       </roles>
     </developer>
     <!--Committers-->
-    <!--End Committers-->
   </developers>
 
   <!-- ====================================================================== 
-->
@@ -414,6 +425,35 @@
         </plugins>
       </build>
     </profile>
+
+    <profile>
+      <id>to-committers</id>
+      <build>
+        <defaultGoal>xslt:transform</defaultGoal>
+        <plugins>
+          <plugin>
+            <groupId>org.codehaus.mojo</groupId>
+            <artifactId>xslt-maven-plugin</artifactId>
+            <version>1.0</version>
+            <configuration>
+                <xslFile>${basedir}/etc/to-committers.xsl</xslFile>
+                <srcIncludes>pom.xml</srcIncludes>
+                <srcDir>${basedir}</srcDir>
+                <destDir>${build.directory}</destDir>
+                <fileNameRegex>pom.xml</fileNameRegex>
+                <fileNameReplacement>COMMITTERS</fileNameReplacement>
+            </configuration>
+            <executions>
+              <execution>
+                <goals>
+                  <goal>transform</goal>
+                </goals>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
   </profiles>
 
   <!-- ====================================================================== 
-->


Reply via email to