commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nia...@apache.org
Subject svn commit: r560844 [1/2] - in /commons/proper/commons-build/trunk: build-downloads.xml downloads/ downloads/download-page.xsl downloads/download-pages.xsl downloads/downloads-cgi.xsl downloads/downloads.xml maven.xml
Date Mon, 30 Jul 2007 02:36:36 GMT
Author: niallp
Date: Sun Jul 29 19:36:35 2007
New Revision: 560844

URL: http://svn.apache.org/viewvc?view=rev&rev=560844
Log:
Copy download page generation from Jakarta (N.B. can't integrate the ant file with maven site
generation because it fails - see note in maven.xml)

Added:
    commons/proper/commons-build/trunk/build-downloads.xml   (with props)
    commons/proper/commons-build/trunk/downloads/
    commons/proper/commons-build/trunk/downloads/download-page.xsl
      - copied, changed from r560842, jakarta/site/xdocs/downloads/download-page.xsl
    commons/proper/commons-build/trunk/downloads/download-pages.xsl
      - copied unchanged from r560842, jakarta/site/xdocs/downloads/download-pages.xsl
    commons/proper/commons-build/trunk/downloads/downloads-cgi.xsl
      - copied unchanged from r560842, jakarta/site/xdocs/downloads/downloads-cgi.xsl
    commons/proper/commons-build/trunk/downloads/downloads.xml
      - copied, changed from r560842, jakarta/site/xdocs/downloads/downloads.xml
Modified:
    commons/proper/commons-build/trunk/maven.xml

Added: commons/proper/commons-build/trunk/build-downloads.xml
URL: http://svn.apache.org/viewvc/commons/proper/commons-build/trunk/build-downloads.xml?view=auto&rev=560844
==============================================================================
--- commons/proper/commons-build/trunk/build-downloads.xml (added)
+++ commons/proper/commons-build/trunk/build-downloads.xml Sun Jul 29 19:36:35 2007
@@ -0,0 +1,55 @@
+<project name="build-download-pages" default="generate" basedir=".">
+
+    <!-- Initialization properties -->
+    <property name="docs.downloads.src" location="downloads"/>
+
+    <property name="target.dir" location="target"/>
+
+    <!-- This docs.downloads.dest value is passed into xdocs/downloads/downloads-cgi.xsl
 -->
+    <property name="docs.downloads.cgi" location="${target.dir}/docs/downloads"/>
+
+    <!-- This docs.downloads.tmp value is passed into xdocs/downloads/download-pages.xsl
 -->
+    <property name="docs.downloads.xdoc" location="${target.dir}/generated-xdocs/downloads"/>
+    
+    <target name="generate" description="Render HTML Pages via XSLT">
+  
+        <mkdir dir="${docs.downloads.xdoc}"/>
+
+        <!-- create xdoc download index file -->
+        <xslt in="${docs.downloads.src}/downloads.xml" 
+              out="${docs.downloads.xdoc}/index.xml" 
+              style="${docs.downloads.src}/download-page.xsl"/>
+    
+        <!-- create xdoc download files -->
+        <xslt in="${docs.downloads.src}/downloads.xml" 
+              out="${docs.downloads.xdoc}/empty.xml" 
+              style="${docs.downloads.src}/download-pages.xsl">
+            <param name="docs.downloads.tmp" expression="${docs.downloads.xdoc}"/>
+        </xslt>
+        <delete file="${docs.downloads.xdoc}/empty.xml"/>
+
+        <!-- create .cgi files -->
+        <echo>*** Create download .cgi file</echo>
+        <xslt in="${docs.downloads.src}/downloads.xml"
+              out="${docs.downloads.cgi}/empty.xml"
+              style="${docs.downloads.src}/downloads-cgi.xsl">
+            <param name="docs.downloads.dest" expression="${docs.downloads.cgi}"/>
+        </xslt>
+        <delete file="${docs.downloads.cgi}/empty.xml"/>
+
+<!--      
+        <antcall target="remove-ws"></antcall>
+-->
+
+    </target>
+
+    <!-- Process output to remove the trailing blank spaces -->
+    <target name="remove-ws">
+        <echo>*** Removing extra white-space</echo>
+        <replace dir="${docs.dest}" token=" />" value="/>">
+            <include name="**/*.html"/>
+        </replace>
+    </target>
+
+    
+</project>

Propchange: commons/proper/commons-build/trunk/build-downloads.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: commons/proper/commons-build/trunk/build-downloads.xml
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Copied: commons/proper/commons-build/trunk/downloads/download-page.xsl (from r560842, jakarta/site/xdocs/downloads/download-page.xsl)
URL: http://svn.apache.org/viewvc/commons/proper/commons-build/trunk/downloads/download-page.xsl?view=diff&rev=560844&p1=jakarta/site/xdocs/downloads/download-page.xsl&r1=560842&p2=commons/proper/commons-build/trunk/downloads/download-page.xsl&r2=560844
==============================================================================
--- jakarta/site/xdocs/downloads/download-page.xsl (original)
+++ commons/proper/commons-build/trunk/downloads/download-page.xsl Sun Jul 29 19:36:35 2007
@@ -11,11 +11,11 @@
     <body>
      <section name="Downloads">
 <p>
-Binary and source releases and links into the <a href="http://archive.apache.org/dist/jakarta/">archives</a>
may be obtained by selecting a project below. 
+Binary and source releases and links into the <a href="http://archive.apache.org/dist/commons/">archives</a>
may be obtained by selecting a project below. 
 </p>
 
   <subsection name="Release Announcements">
-<p>We recommend that you subscribe to the Jakarta <a href="../mail2.html#Announcement">announcements</a>
mailing list to be notified when releases are made by the Jakarta project. </p>
+<p>We recommend that you subscribe to the Commons <a href="http://commons.apache.org/mail-lists.html">announcements</a>
mailing list to be notified when releases are made by the Commons project. </p>
       </subsection>
 
       <subsection name="Downloads">



Mime
View raw message