vmassol 2002/12/15 10:31:31
Modified: documentation Tag: CACTUS_14_BRANCH build.xml
documentation/docs/skins/jakarta.apache.org/stylesheets Tag:
CACTUS_14_BRANCH book2project.xsl document2html.xsl
documentation/docs/xdocs Tag: CACTUS_14_BRANCH book.xml
. Tag: CACTUS_14_BRANCH build-admin.xml
Log:
The Cactus web site now displays documentation for 2 versions: the CVS head one and
the last released one.
Note: CVS HEAD version must be named with the "dev" suffix for the scripts to work.
Revision Changes Path
No revision
No revision
1.11.2.5 +5 -0 jakarta-cactus/documentation/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/jakarta-cactus/documentation/build.xml,v
retrieving revision 1.11.2.4
retrieving revision 1.11.2.5
diff -u -r1.11.2.4 -r1.11.2.5
--- build.xml 30 Aug 2002 23:03:46 -0000 1.11.2.4
+++ build.xml 15 Dec 2002 18:31:30 -0000 1.11.2.5
@@ -38,6 +38,10 @@
<property name="project.name.text" value="Cactus Documentation"/>
<property name="project.version" value="1.4.1"/>
+ <!-- The Cactus web site keeps online the documentation for the previous
+ version. This property is the name of the other version kept -->
+ <property name="project.other.version" value="1.5dev"/>
+
<!-- Prefix to add to all distributable files -->
<property name="project.prefix" value="jakarta-"/>
@@ -139,6 +143,7 @@
<!-- Filters -->
<filter token="version" value="${project.version}"/>
+ <filter token="otherversion" value="${project.other.version}"/>
<filter token="year" value="${year}"/>
<filter token="today" value="${TODAY}"/>
No revision
No revision
1.2.8.1 +2 -1
jakarta-cactus/documentation/docs/skins/jakarta.apache.org/stylesheets/book2project.xsl
Index: book2project.xsl
===================================================================
RCS file:
/home/cvs/jakarta-cactus/documentation/docs/skins/jakarta.apache.org/stylesheets/book2project.xsl,v
retrieving revision 1.2
retrieving revision 1.2.8.1
diff -u -r1.2 -r1.2.8.1
--- book2project.xsl 14 Apr 2002 07:50:46 -0000 1.2
+++ book2project.xsl 15 Dec 2002 18:31:30 -0000 1.2.8.1
@@ -9,7 +9,8 @@
<parameter name="copyright" value="{@copyright}"/>
<parameter name="updated" value="{@updated}"/>
- <parameter name="docfor" value="{@docfor}"/>
+ <parameter name="currentversion" value="{@currentversion}"/>
+ <parameter name="otherversion" value="{@otherversion}"/>
<parameter name="software" value="{@software}"/>
<resource source="sbk:/style/resources/logocactus.gif"
target="images/logocactus.gif"/>
1.2.8.1 +17 -2
jakarta-cactus/documentation/docs/skins/jakarta.apache.org/stylesheets/document2html.xsl
Index: document2html.xsl
===================================================================
RCS file:
/home/cvs/jakarta-cactus/documentation/docs/skins/jakarta.apache.org/stylesheets/document2html.xsl,v
retrieving revision 1.2
retrieving revision 1.2.8.1
diff -u -r1.2 -r1.2.8.1
--- document2html.xsl 14 Apr 2002 07:50:46 -0000 1.2
+++ document2html.xsl 15 Dec 2002 18:31:30 -0000 1.2.8.1
@@ -5,7 +5,8 @@
<xsl:param name="stylebook.project"/>
<xsl:param name="copyright"/>
<xsl:param name="updated"/>
- <xsl:param name="docfor"/>
+ <xsl:param name="currentversion"/>
+ <xsl:param name="otherversion"/>
<xsl:param name="docid"/>
<xsl:param name="target"/>
@@ -89,7 +90,21 @@
</font>
<br/>
<font size="-2">
- Doc for : v<xsl:value-of select="$docfor"/>
+ Doc for : <b>v<xsl:value-of select="$currentversion"/></b>
+ |
+ <a>
+ <xsl:attribute name="href">
+ <xsl:choose>
+ <xsl:when test="contains($currentversion,'dev')">
+ ..
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="$otherversion"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:attribute>
+ v<xsl:value-of select="$otherversion"/>
+ </a>
</font>
<br/>
No revision
No revision
1.15.2.4 +2 -1 jakarta-cactus/documentation/docs/xdocs/book.xml
Index: book.xml
===================================================================
RCS file: /home/cvs/jakarta-cactus/documentation/docs/xdocs/book.xml,v
retrieving revision 1.15.2.3
retrieving revision 1.15.2.4
diff -u -r1.15.2.3 -r1.15.2.4
--- book.xml 14 Oct 2002 10:09:02 -0000 1.15.2.3
+++ book.xml 15 Dec 2002 18:31:31 -0000 1.15.2.4
@@ -4,7 +4,8 @@
title="Cactus Documentation"
copyright="@year@ The Apache Software Foundation"
updated="@today@"
- docfor="@version@">
+ currentversion="@version@"
+ otherversion="@otherversion@">
<menu label="About">
<menu-item label="What is Cactus ?" source="index.xml"/>
No revision
No revision
1.4.2.1 +33 -2 jakarta-cactus/build-admin.xml
Index: build-admin.xml
===================================================================
RCS file: /home/cvs/jakarta-cactus/build-admin.xml,v
retrieving revision 1.4
retrieving revision 1.4.2.1
diff -u -r1.4 -r1.4.2.1
--- build-admin.xml 28 Jul 2002 23:09:33 -0000 1.4
+++ build-admin.xml 15 Dec 2002 18:31:31 -0000 1.4.2.1
@@ -26,6 +26,14 @@
<!-- Global project properties -->
<property name="project.name.text" value="Cactus Administration"/>
+ <!-- The version is used to know where to unpack the website. If the
+ version contains "dev" in its name, it will be unpacked in
+ "/www/jakarta.apache.org/cactus/<version name>". If it does not
+ contain "dev", it means we are deploying the documentation for
+ the latest stable release and it will be unpacked in
+ "/www/jakarta.apache.org/cactus". -->
+ <property name="project.version" value="1.4.1"/>
+
<!-- Prefix to add to all distributable files -->
<property name="project.prefix" value="jakarta-"/>
@@ -188,21 +196,44 @@
and 'ssh' commands.
========================================================================
-->
- <target name="deploy" depends="release"
- description="Deploy the Cactus web site">
+ <target name="deploy.init">
<property name="cactus.homepage"
value="/www/jakarta.apache.org/cactus"/>
+ <condition property="is.dev.version">
+ <contains string="${project.version}" substring="dev"/>
+ </condition>
+
<exec dir="." executable="${admin.scp}">
<arg value="${release.dir}/${cactus.website.name}.tar.gz"/>
<arg
value="${admin.jakarta.username}@jakarta.apache.org:${cactus.homepage}"/>
</exec>
+ </target>
+
+ <target name="deploy.release" unless="is.dev.version">
+
+ <echo>Deploying release version to ${cactus.homepage} ...</echo>
+
<exec dir="." executable="${admin.ssh}">
<arg line="-l ${admin.jakarta.username} jakarta.apache.org 'cd
${cactus.homepage};gunzip ${cactus.website.name}.tar.gz;tar xvf
${cactus.website.name}.tar;rm ${cactus.website.name}.tar'"/>
</exec>
+ </target>
+
+ <target name="deploy.dev" if="is.dev.version">
+
+ <echo>Deploying dev version to ${cactus.homepage}/${project.version}
...</echo>
+
+ <exec dir="." executable="${admin.ssh}">
+ <arg line="-l ${admin.jakarta.username} jakarta.apache.org 'cd
${cactus.homepage};mkdir ${project.version};gunzip ${cactus.website.name}.tar.gz;tar
xvf ${cactus.website.name}.tar -C${project.version};rm ${cactus.website.name}.tar'"/>
+ </exec>
+
+ </target>
+
+ <target name="deploy" depends="release,deploy.init,deploy.release,deploy.dev"
+ description="Deploy the Cactus web site">
</target>
<!--
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>