You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by do...@apache.org on 2008/05/09 18:17:00 UTC

svn commit: r654871 - in /incubator/shindig/trunk: COMMITTERS etc/to-committers.xsl pom.xml

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
+shindig-dev@incubator.apache.org, rather than mailing any of these
+people directly.
+
+Blanket commit access:
+
+	    brianm	Brian McCallister   brianm@apache.org        PMC Member
+	   chabotc	Chris Chabot        chabotc@apache.org       PMC Member
+	  dbentley	Daniel Bentley      dbentley@apache.org      PMC Member
+	      doll	Cassie Doll         doll@apache.org          PMC Member
+	      etnu	Kevin Brown         etnu@apache.org          PMC Member
+	      evan	Evan Gilbert        evan@apache.org          PMC Member
+	     johnh	John Hjelmstad      johnh@apache.org         PMC Member
+	     jyang	Jun Yang            jyang@apache.org         PMC Member
+	   lindner	Paul Lindner        lindner@apache.org       PMC Member
+	     lryan	Louis Ryan          lryan@apache.org         PMC Member
+	   martint	Martin Traverso     martint@apache.org       PMC Member
+	      zhen	Zhen Wang           zhen@apache.org          PMC Member
+	      fitz	Brian Fitzpatrick   fitz@apache.org          Mentor    
+	    gstein	Greg Stein          gstein@apache.org        Mentor    
+	     sgala	Santiago Gala       sgala@hisitech.com       Mentor    
+	   sylvain	Sylvain Wallez      sylvain@apache.org       Mentor    
+	     tomdz	Thomas Dudziak      tomdz@apache.org         Mentor    
+	 upayavira	Upayavira           upayavira@apache.org     Mentor    
+	 dharkness	David Harkness      dharkness@apache.org     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
+shindig-dev@incubator.apache.org, 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>bstoler@apache.org</email>
+      <id>chabotc</id>
+      <name>Chris Chabot</name>
+      <email>chabotc@apache.org</email>
       <organization>ASF</organization>
       <roles>
         <role>PMC Member</role>
       </roles>
     </developer>
     <developer>
-      <id>dcoker</id>
-      <name>Doug Coker</name>
-      <email>dcoker@apache.org</email>
-      <organization>ASF</organization>
-      <roles>
-        <role>PMC Member</role>
-      </roles>
-    </developer>
-    <developer>
-      <id>dglazer</id>
-      <name>David Glazer</name>
-      <email>dglazer@apache.org</email>
-      <organization>ASF</organization>
-      <roles>
-        <role>PMC Member</role>
-      </roles>
-    </developer>
-    <developer>
-      <id>dharkness</id>
-      <name>David Harkness</name>
-      <email>dharkness@apache.org</email>
+      <id>dbentley</id>
+      <name>Daniel Bentley</name>
+      <email>dbentley@apache.org</email>
       <organization>ASF</organization>
       <roles>
         <role>PMC Member</role>
@@ -157,15 +141,6 @@
       </roles>
     </developer>
     <developer>
-      <id>gfs</id>
-      <name>Graham Spencer</name>
-      <email>gfs@apache.org</email>
-      <organization>ASF</organization>
-      <roles>
-        <role>PMC Member</role>
-      </roles>
-    </developer>
-    <developer>
       <id>johnh</id>
       <name>John Hjelmstad</name>
       <email>johnh@apache.org</email>
@@ -175,24 +150,6 @@
       </roles>
     </developer>
     <developer>
-      <id>jpanzer</id>
-      <name>John Panzer</name>
-      <email>jpanzer@apache.org</email>
-      <organization>ASF</organization>
-      <roles>
-        <role>PMC Member</role>
-      </roles>
-    </developer>
-    <developer>
-      <id>jregan</id>
-      <name>Jeff Regan</name>
-      <email>jregan@apache.org</email>
-      <organization>ASF</organization>
-      <roles>
-        <role>PMC Member</role>
-      </roles>
-    </developer>
-    <developer>
       <id>jyang</id>
       <name>Jun Yang</name>
       <email>jyang@apache.org</email>
@@ -229,25 +186,79 @@
       </roles>
     </developer>
     <developer>
-      <id>ramani</id>
-      <name>Ramkumar Ramani</name>
-      <email>ramani@apache.org</email>
+      <id>zhen</id>
+      <name>Zhen Wang</name>
+      <email>zhen@apache.org</email>
       <organization>ASF</organization>
       <roles>
         <role>PMC Member</role>
       </roles>
     </developer>
+    <!-- Mentors -->
+    <developer>
+      <id>fitz</id>
+      <name>Brian Fitzpatrick</name>
+      <email>fitz@apache.org</email>
+      <organization>ASF</organization>
+      <roles>
+        <role>Mentor</role>
+      </roles>
+    </developer>
+    <developer>
+      <id>gstein</id>
+      <name>Greg Stein</name>
+      <email>gstein@apache.org</email>
+      <organization>ASF</organization>
+      <roles>
+        <role>Mentor</role>
+      </roles>
+    </developer>
+    <developer>
+      <id>sgala</id>
+      <name>Santiago Gala</name>
+      <email>sgala@hisitech.com</email>
+      <organization>ASF</organization>
+      <roles>
+        <role>Mentor</role>
+      </roles>
+    </developer>
+    <developer>
+      <id>sylvain</id>
+      <name>Sylvain Wallez</name>
+      <email>sylvain@apache.org</email>
+      <organization>ASF</organization>
+      <roles>
+        <role>Mentor</role>
+      </roles>
+    </developer>
     <developer>
       <id>tomdz</id>
       <name>Thomas Dudziak</name>
       <email>tomdz@apache.org</email>
       <organization>ASF</organization>
       <roles>
-        <role>PMC Member</role>
+        <role>Mentor</role>
+      </roles>
+    </developer>
+    <developer>
+      <id>upayavira</id>
+      <name>Upayavira</name>
+      <email>upayavira@apache.org</email>
+      <organization>ASF</organization>
+      <roles>
+        <role>Mentor</role>
+      </roles>
+    </developer>
+    <developer>
+      <id>dharkness</id>
+      <name>David Harkness</name>
+      <email>dharkness@apache.org</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>
 
   <!-- ====================================================================== -->