forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgard...@apache.org
Subject svn commit: r178221 - in /forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo: input.xmap resources/stylesheets/changes2document.xsl src/documentation/content/xdocs/index.xml status.xml
Date Tue, 24 May 2005 18:10:01 GMT
Author: rgardler
Date: Tue May 24 11:09:59 2005
New Revision: 178221

URL: http://svn.apache.org/viewcvs?rev=178221&view=rev
Log:
autogenerate release notes and allow changes to be displayed for a single version.

Modified:
    forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/input.xmap
    forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/resources/stylesheets/changes2document.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

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=178221&r1=178220&r2=178221&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 Tue May 24
11:09:59 2005
@@ -37,10 +37,28 @@
         </map:transform>
         <map:serialize type="xml-document"/>
       </map:match>
+    
+      <map:match type="regexp" pattern="^(.*?)([^/]*)changes_(.*).xml$">
+        <map:generate type="file" src="{project:status}" />
+        <map:transform src="resources/stylesheets/changes2document.xsl" >
+          <map:parameter name="bugtracking-url" value="{defaults:bugtracking-url}"/>
+          <map:parameter name="path" value="{1}{2}"/>
+          <map:parameter name="versionNumber" value="{3}"/>
+        </map:transform>
+        <map:serialize type="xml-document"/>
+      </map:match>
 
       <map:match type="regexp" pattern="^(.*?)([^/]*)todo.xml$">
         <map:generate type="file" src="{project:status}" />
         <map:transform src="resources/stylesheets/todo2document.xsl" />
+        <map:serialize type="xml-document"/>
+      </map:match>
+
+      <map:match type="regexp" pattern="^(.*?)([^/]*)releaseNotes_(.*).xml$">
+        <map:generate type="file" src="{project:status}" />
+        <map:transform src="resources/stylesheets/releaseNotes2document.xsl">
+          <map:parameter name="versionNumber" value="{3}"/>
+        </map:transform>
         <map:serialize type="xml-document"/>
       </map:match>
 

Modified: forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/resources/stylesheets/changes2document.xsl
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/resources/stylesheets/changes2document.xsl?rev=178221&r1=178220&r2=178221&view=diff
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/resources/stylesheets/changes2document.xsl
(original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/resources/stylesheets/changes2document.xsl
Tue May 24 11:09:59 2005
@@ -21,6 +21,7 @@
     version="1.0"> 
 
   <xsl:param name="path"/>
+  <xsl:param name="versionNumber"/>
   <xsl:include href="dotdots.xsl"/> <!-- FIXME: howto include from forrest core
-->
 
   <!-- Calculate path to site root, eg '../../' -->
@@ -48,14 +49,22 @@
        <xsl:value-of select="@title"/>
      </xsl:when>
      <xsl:otherwise>
-       <xsl:text>History of Changes</xsl:text>
+       <xsl:text>History of Changes</xsl:text> <xsl:value-of select="$versionNumber"/>
      </xsl:otherwise>
     </xsl:choose>
    </title>
    </header>
    <body>
-    <p><link href="changes.rss"><img src="{$root}images/rss.png" alt="RSS"/></link></p>
   
-    <xsl:apply-templates/>
+    
+    <p><link href="changes.rss"><img src="{$root}images/rss.png" alt="RSS"/></link></p>
+    <xsl:choose>
+      <xsl:when test="$versionNumber">
+        <xsl:apply-templates select="release[@version=$versionNumber]"/>
+      </xsl:when>
+      <xsl:otherwise>
+        <xsl:apply-templates/>
+      </xsl:otherwise>
+    </xsl:choose>
    </body>
   </document>
  </xsl:template>
@@ -63,15 +72,56 @@
  <xsl:template match="release">
   <section id="version_{@version}">
    <title>Version <xsl:value-of select="@version"/> (<xsl:value-of select="@date"/>)</title>
-   <ul>
-     <!-- To sort types by add,remove,update,fix. Look nicer -->
-     <xsl:apply-templates select="action[@type='add']"/>
-     <xsl:apply-templates select="action[@type='remove']"/>
-     <xsl:apply-templates select="action[@type='update']"/>
-     <xsl:apply-templates select="action[@type='fix']"/>
-     <xsl:apply-templates select="action[@type='hack']"/>
-     <xsl:apply-templates select="action[@type!='add' and @type!='remove' and @type!='update'
and @type!='fix' and @type!='hack']"/>
-   </ul>
+     <xsl:if test="action[@context='code']">
+       <section>
+         <title>Changes to Code Base</title>
+         <ul>
+          <xsl:apply-templates select="action[@context='code']">
+            <xsl:sort select="@type"/>
+          </xsl:apply-templates>
+         </ul>
+       </section>
+     </xsl:if>
+     <xsl:if test="action[@context='docs']">
+       <section>
+         <title>Changes to Documentation</title>
+         <ul>
+          <xsl:apply-templates select="action[@context='docs']">
+            <xsl:sort select="@type"/>
+          </xsl:apply-templates>
+        </ul>
+       </section>
+     </xsl:if>
+     <xsl:if test="action[@context='admin']">
+       <section>
+         <title>Changes to Project Administration</title>
+         <ul>
+           <xsl:apply-templates select="action[@context='admin']">
+            <xsl:sort select="@type"/>
+          </xsl:apply-templates>
+         </ul>
+       </section>
+     </xsl:if>
+     <xsl:if test="action[@context='design']">
+       <section>
+         <title>Changes to Design</title>
+         <ul>
+          <xsl:apply-templates select="action[@context='design']">
+            <xsl:sort select="@type"/>
+          </xsl:apply-templates>
+         </ul>
+       </section>
+     </xsl:if>
+     <xsl:if test="action[@context='build']">
+       <section>
+         <title>Changes to Build</title>
+         <ul>
+           <xsl:apply-templates select="action[@context='build']">
+            <xsl:sort select="@type"/>
+          </xsl:apply-templates>
+         </ul>
+       </section>
+     </xsl:if>
   </section>
  </xsl:template>
 

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=178221&r1=178220&r2=178221&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
Tue May 24 11:09:59 2005
@@ -30,6 +30,7 @@
       <ul>
         <li><a href="changes.html">Recent Changes</a></li>
         <li><a href="todo.html">ToDo list</a></li>
+        <li><a href="releaseNotes_0.1">Release Notes</a></li>
       </ul>
     </section>
   </body>

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=178221&r1=178220&r2=178221&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 Tue May 24
11:09:59 2005
@@ -15,7 +15,7 @@
   See the License for the specific language governing permissions and
   limitations under the License.
 -->
-<!DOCTYPE status PUBLIC "-//APACHE//DTD Status V1.3//EN" "http://forrest.apache.org/dtd/status-v13.dtd">
+<!DOCTYPE status PUBLIC "-//APACHE//DTD Status V1.3//EN" "status-v13.dtd">
 <status>
 
   <developers>
@@ -25,10 +25,20 @@
   <changes>
     <!-- Add new releases here -->
     <release version="0.1" date="unreleased">
-      <action context="xsl" type="fix" dev="DC">
+      <action context="code" type="add" dev="RDG" importance="high">
+        Added automatic generation of release notes by requesting  **/releaseNotes_VERSION-NUMBER.xml
+      </action>
+      <action context="design" type="add" dev="RDG" importance="high">
+        Added optional "notes" element to "release" element of status 1.3 DTD. This 
+        will be inserted into the release notes for that version.
+      </action>
+      <action context="code" type="add" dev="RDG" importance="high">
+        Enable the generation of changes for a specific version by requesting **/changes_VERSION-NUMBER.xml
+      </action>
+      <action context="docs" type="fix" dev="DC">
         Use relative location of images directory.
       </action>
-      <action dev="DC" type="add" context="xmap">
+      <action dev="DC" type="add" context="design">
        Added better sitemap match using regexp to deal
        with sub-directories too.
       </action>
@@ -36,12 +46,12 @@
         Replace use of document() function in changes2rss.xml with
         sitemap aggregation.
       </action>
-      <action dev="DC" type="fix" context="xsl"
+      <action dev="DC" type="fix" context="code"
        fixes-bug="FOR-455" due-to="Cyriaque Dupoirieux">
        Use the "title" attribute of "changes" and "todo" tags if it exists,
        otherwise use the hard-coded values.
       </action>
-      <action context="code" type="update" dev="RDG">
+      <action context="code" type="update" dev="RDG" importance="high">
         Move ToDo and Changes pipelines to this plugin, from core.
       </action>
       <action dev="RDG" type="add" context="admin">



Mime
View raw message