You are viewing a plain text version of this content. The canonical link for it is here.
Posted to site-cvs@jakarta.apache.org by ba...@apache.org on 2005/02/21 00:58:37 UTC

svn commit: r154573 - jakarta/site/build-downloads.xml jakarta/site/build.xml

Author: bayard
Date: Sun Feb 20 15:58:36 2005
New Revision: 154573

URL: http://svn.apache.org/viewcvs?view=rev&rev=154573
Log:
put the download build bits into the main build.xml

Removed:
    jakarta/site/build-downloads.xml
Modified:
    jakarta/site/build.xml

Modified: jakarta/site/build.xml
URL: http://svn.apache.org/viewcvs/jakarta/site/build.xml?view=diff&r1=154572&r2=154573
==============================================================================
--- jakarta/site/build.xml (original)
+++ jakarta/site/build.xml Sun Feb 20 15:58:36 2005
@@ -4,6 +4,9 @@
     <property name="project.name"   value="site"/>
     <property name="docs.src" location="xdocs"/>
     <property name="docs.dest" location="docs"/>
+    <property name="docs.downloads.src" location="${docs.src}/downloads"/>
+    <property name="docs.downloads.tmp" location="${docs.src}/download-xdocs"/>
+    <property name="docs.downloads.dest" location="${docs.dest}/site/downloads"/>
 
   <!-- Requires JDK 1.4 -->
   <target name="docs"
@@ -63,6 +66,36 @@
             force='true'>
       <param name="relative-path" expression="../.."/>
     </style>
+
+    <!-- make download xdocs -->
+    <mkdir dir="${docs.downloads.tmp}"/>
+    <xslt in="${docs.downloads.src}/downloads.xml" out="${docs.downloads.tmp}/downloads.xml" style="${docs.downloads.src}/download-page.xsl" />
+    <xslt in="${docs.downloads.src}/downloads.xml" out="${docs.downloads.tmp}/empty.xml" style="${docs.downloads.src}/download-pages.xsl" />
+    <delete file="${docs.downloads.tmp}/empty.xml"/>
+
+    <!-- convert to download pages -->
+    <style   basedir="${docs.downloads.tmp}"
+             destdir="${docs.downloads.dest}"
+             extension=".html"
+             style="${docs.src}/stylesheets/site.xsl"
+             includes="*.xml"
+             force='true'>
+        <param name="relative-path" expression="../.."/>
+    </style>
+
+    <delete dir="${docs.downloads.tmp}"/>
+
+    <!-- create .cgi files -->
+    <xslt in="${docs.downloads.src}/downloads.xml" out="${docs.downloads.dest}/empty.xml" style="${docs.downloads.src}/downloads-cgi.xsl" />
+    <delete file="${docs.downloads.dest}/empty.xml"/>
+
+    <!-- remove xml header from .cgi files -->
+    <replace dir="${docs.downloads.dest}/" value="">
+      <include name="*.cgi"/>
+      <replaceToken><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
+
+]]></replaceToken>
+    </replace>
 
     <!-- Copy static resource files -->
     <copy    todir="${docs.dest}/images" filtering="no">



---------------------------------------------------------------------
To unsubscribe, e-mail: site-cvs-unsubscribe@jakarta.apache.org
For additional commands, e-mail: site-cvs-help@jakarta.apache.org