forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgard...@apache.org
Subject svn commit: r348699 - in /forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo: forrest.properties.xml input.xmap resources/stylesheets/changes-to-document.xsl src/documentation/content/xdocs/index.xml status.xml
Date Thu, 24 Nov 2005 09:45:50 GMT
Author: rgardler
Date: Thu Nov 24 01:45:36 2005
New Revision: 348699

URL: http://svn.apache.org/viewcvs?rev=348699&view=rev
Log:
add some config options (uses the experimental forrest.properties.xml file)

Added:
    forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/forrest.properties.xml
  (with props)
Modified:
    forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/input.xmap
    forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/resources/stylesheets/changes-to-document.xsl
    forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/src/documentation/content/xdocs/index.xml
    forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/status.xml

Added: forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/forrest.properties.xml
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/forrest.properties.xml?rev=348699&view=auto
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/forrest.properties.xml
(added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/forrest.properties.xml
Thu Nov 24 01:45:36 2005
@@ -0,0 +1,15 @@
+<?cml version="1.0" encoding="UTF-8"?>
+<properties>
+  <!-- A comma separated list defining the way actions are sorted in the changes file.
+       none = no sorting, will be listed in chronological order
+       type = group by the type attribute -->
+  <property name="projectInfo.changes.sort" value="type"/>
+  
+  <!-- Indicate if the committers list should be included. Values are true
+       or false. -->
+  <property name="projectInfo.changes.includeCommitterList" value="true"/>
+  
+  <!-- Indicate if the contributors list should be included. Values are true
+       or false. -->
+  <property name="projectInfo.changes.includeContributorList" value="true"/>
+</properties>

Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/forrest.properties.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/input.xmap
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/input.xmap?rev=348699&r1=348698&r2=348699&view=diff
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/input.xmap (original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/input.xmap Thu Nov 24
01:45:36 2005
@@ -48,6 +48,9 @@
         <map:transform src="{lm:projectInfo.transform.changes.document}" >
           <map:parameter name="bugtracking-url" value="{defaults:bugtracking-url}"/>
           <map:parameter name="path" value="{1}{2}"/>
+          <map:parameter name="projectInfo.changes.sort" value="{project:projectInfo.changes.sort}"/>
+          <map:parameter name="projectInfo.changes.includeCommitterList" value="{project:projectInfo.changes.includeCommitterList}"/>
+          <map:parameter name="projectInfo.changes.includeContributorList" value="{project:projectInfo.changes.includeContributorList}"/>
         </map:transform>
         <map:serialize type="xml-document"/>
       </map:match>

Modified: forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/resources/stylesheets/changes-to-document.xsl
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/resources/stylesheets/changes-to-document.xsl?rev=348699&r1=348698&r2=348699&view=diff
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/resources/stylesheets/changes-to-document.xsl
(original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/resources/stylesheets/changes-to-document.xsl
Thu Nov 24 01:45:36 2005
@@ -22,6 +22,10 @@
 
   <xsl:param name="path"/>
   <xsl:param name="versionNumber"/>
+  <xsl:param name="projectInfo.changes.sort"/>
+  <xsl:param name="projectInfo.changes.includeCommitterList"/>
+  <xsl:param name="projectInfo.changes.includeContributorList"/>
+  
   <xsl:include href="dotdots.xsl"/> <!-- FIXME: howto include from forrest core
-->
 
   <!-- Calculate path to site root, eg '../../' -->
@@ -75,15 +79,14 @@
         <xsl:apply-templates/>
       </xsl:otherwise>
     </xsl:choose>
-    <xsl:if test="//developers">
+    <xsl:if test="$projectInfo.changes.includeCommitterList = 'true' and //developers">
        <section>
          <title>Committers</title>
-         <p>This is a list of all people, in alphabetic order, who have been 
+         <p>This is a list of all people who have been 
          voted in as committers on this project.</p>
          
          <ul>
            <xsl:for-each select="//developers/person">
-             <xsl:sort select="@name"/>
              <li><xsl:value-of select="@name"/> (<xsl:value-of select="@id"/>)</li>
            </xsl:for-each>
          </ul>
@@ -111,13 +114,20 @@
     </xsl:choose>
     </title>
      <ul>
-      <xsl:apply-templates select="key('contexts',concat(../@version, '_', @context) )">
-       <xsl:sort select="@type"/>
-      </xsl:apply-templates>
+      <xsl:choose>
+        <xsl:when test="contains($projectInfo.changes.sort, 'type')">
+          <xsl:apply-templates select="key('contexts',concat(../@version, '_', @context)
)">
+              <xsl:sort select="@type"/>
+          </xsl:apply-templates>
+        </xsl:when>
+        <xsl:otherwise>
+          <xsl:apply-templates select="key('contexts',concat(../@version, '_', @context)
)"/>
+        </xsl:otherwise>
+      </xsl:choose>
      </ul>
     </section>
    </xsl:for-each>
-   <xsl:if test="action[@due-to]">
+   <xsl:if test="$projectInfo.changes.includeContributorList = 'true' and action[@due-to]">
      <section>
        <title>Contributors</title>
        <p>This is a list of all people who have contributed to this release, but 

Modified: forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/src/documentation/content/xdocs/index.xml
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/src/documentation/content/xdocs/index.xml?rev=348699&r1=348698&r2=348699&view=diff
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/src/documentation/content/xdocs/index.xml
(original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/src/documentation/content/xdocs/index.xml
Thu Nov 24 01:45:36 2005
@@ -183,5 +183,26 @@
       </section>
       
     </section>
+    
+    <section>
+      <title>Experimental Features</title>
+      <p>These features are operational, however, they are not fully developed and
+      may change considerably before they become part of the official feature set.
+      You can use them, but be prepared for changes, possibly without warning. If you
+      do use these features we recomend that you join the developers mailing list.</p>
+      
+      <section>
+        <title>Configuration</title>
+        <p>This plugin uses an experimental properties system that allows plugins
+        to expose configuration information to the project. It is likely that at
+        least some of these configuration options will eventually move into Dispatcher
+        based contracts. In the meantime, you can use this config system to control
+        some aspects of the display information. See the 
+        <code>forrest.properties.xml</code> file for a description of the config
+        options available. To alter the configuration simply override these
+        properties in your projects <code>forrest.properties.xml</code> file.</p>
+        
+      </section>
+    </section>
   </body>
 </document>

Modified: forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/status.xml
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/status.xml?rev=348699&r1=348698&r2=348699&view=diff
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/status.xml (original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/status.xml Thu Nov 24
01:45:36 2005
@@ -19,6 +19,10 @@
 <status>
 
   <developers>
+    <!-- FIFO order -->
+    <person name="Ross Gardler" email="rgardler@apache.org" id="RDG"/>
+    <person name="David Crossley" email="crossley@apache.org" id="DC"/>    
+    <person name="Cyriaque Dupoirieux" email="Cyriaque.Dupoirieux@pcotech.fr" id="CD"/>
     <person name="Volunteer needed" email="dev@forrest.apache.org" id="open"/>
   </developers>
 
@@ -41,6 +45,13 @@
         <p>This plugin provides various mechanisms for extracting and
         displaying information about a given project.</p>
       </notes>
+      <action dev="RDG" type="add" context="code">
+        Add configuration options to control sorting of changes and
+        inclusion of developer and committer lists.
+      </action>
+      <action dev="RDG" type="add" context="code">
+        Add list of committers and developers to changes document.
+      </action>
       <action dev="DC" type="add" context="code" importance="high">
         Enable project-level locationmap to define the location of
         the project:status file which contains the change notes.



Mime
View raw message