geirm 01/02/26 21:08:54
Modified: build build-velocity.xml
Log:
Changed to allow us to build the documentation using Anakia from our
own jar, and fetch the site.vsl from jakarta-site2 CVS to maintain
up-to-date style.
This removes the jakarta-site2 local dependency.
Revision Changes Path
1.33 +33 -12 jakarta-velocity/build/build-velocity.xml
Index: build-velocity.xml
===================================================================
RCS file: /home/cvs/jakarta-velocity/build/build-velocity.xml,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -r1.32 -r1.33
--- build-velocity.xml 2001/02/26 06:38:51 1.32
+++ build-velocity.xml 2001/02/27 05:08:53 1.33
@@ -126,9 +126,6 @@
<classpath refid = "classpath"/>
</available>
- <available classname="org.apache.velocity.anakia.AnakiaTask"
- property="AnakiaTask.present">
- </available>
</target>
<target name="J2EE-error" depends="prepare" unless="J2EE.present">
@@ -451,23 +448,46 @@
<!-- =================================================================== -->
<!-- Make HTML version of Velocity documentation -->
<!-- =================================================================== -->
- <target name="docs-prepare-error" depends="prepare" unless="AnakiaTask.present">
- <echo>
- The Jakarta-Site2 module is not present! Please check
- to make sure that you have checked it out from CVS.
- <http://jakarta.apache.org/site/jakarta-site2.html>
- </echo>
- </target>
<target name="docs"
- depends="docs-prepare-error"
+ depends="jar"
description="--> generates the HTML documentation"
- if="AnakiaTask.present">
+ >
+ <echo>
+ #####################################################
+ #
+ # Fetching the latest stylesheet from jakarta-site2
+ #
+ # Ant really is the bee's knees.
+ # http://jakarta.apache.org/ant/
+ #
+ #####################################################
+ </echo>
+
+ <cvs cvsRoot=":pserver:[EMAIL PROTECTED]:/home/cvspublic"
+ command="checkout -p jakarta-site2/xdocs/stylesheets/site.vsl"
+ output="${docs.src}/stylesheets/site.vsl"
+ />
+
<taskdef name="anakia"
classname="org.apache.velocity.anakia.AnakiaTask">
+
+ <classpath>
+ <pathelement location="${build.dir}/${project}-${version}.jar"/>
+ </classpath>
+
</taskdef>
+ <echo>
+ #######################################################
+ #
+ # Now using Anakia to transform our XML documentation
+ # to HTML
+ #
+ #######################################################
+ </echo>
+
<anakia basedir="${docs.src}" destdir="${docs.dest}/"
extension=".html" style="./site.vsl"
projectFile="stylesheets/project.xml"
@@ -484,6 +504,7 @@
<include name="**/*.jpg"/>
</fileset>
</copy>
+
<!-- In case we have CSS someday
<copy todir="${docs.dest}" filtering="no">
<fileset dir="${docs.src}">