geirm 01/04/02 21:04:49
Added: . build.xml
Log:
Build.xml to make the documentation. There is a default target, docs.
All ant experts out there - help cleaing this up is invited :)
Revision Changes Path
1.1 jakarta-commons/build.xml
Index: build.xml
===================================================================
<?xml version="1.0"?>
<!-- Build file for Commons site and more -->
<project name="Commons" default="docs" basedir=".">
<!-- Give user a chance to override without editing this file
(and without typing -D each time it compiles it -->
<property file="${user.home}/.ant.properties" />
<property file=".ant.properties" />
<property name="Name" value="Commons"/>
<property name="version" value="0.01"/>
<property name="project" value="commons"/>
<property name="year" value="2001"/>
<property name="ant.home" value="."/>
<property name="debug" value="on"/>
<property name="optimize" value="on"/>
<property name="deprecation" value="off"/>
<property name="docs.dest" value="docs"/>
<property name="docs.src" value="xdocs"/>
<!-- =================================================================== -->
<!-- prints the environment -->
<!-- =================================================================== -->
<target name="env">
<echo message="build.compiler = ${build.compiler}"/>
<echo message="java.home = ${java.home}"/>
<echo message="user.home = ${user.home}"/>
<echo message="java.class.path = ${java.class.path}"/>
<echo message=""/>
</target>
<!-- =================================================================== -->
<!-- Make HTML version of Commons site and documentation -->
<!-- =================================================================== -->
<target name="docs"
description="--> generates the HTML documentation"
>
<echo>
####################################################################
#
# Fetching the latest stylesheet from jakarta-site2
#
# NOTE : As this build target is meant for developers, this requires
# a properly setup CVS. But you are encouraged to use this to
# experiment with Anakia - if the fetch fails, it may be because
# you haven't yet logged into CVS. The way to do it, assuming you
# have a resonable CVS client setup is
#
# $ cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic login
# password: anoncvs
#
# and that should solve it.
#
# See http://jakarta.apache.org/site/cvsindex.html for more
# information, or http://www.cvshome.org/
#
# 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">
</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"
excludes="**/stylesheets/** empty.xml"
includes="**/*.xml"
lastModifiedCheck="true"
templatePath="xdocs/stylesheets">
</anakia>
<copy todir="${docs.dest}/images" filtering="no">
<fileset dir="${docs.src}/images">
<include name="**/*.gif"/>
<include name="**/*.jpeg"/>
<include name="**/*.jpg"/>
</fileset>
</copy>
</target>
</project>