blob: d7988f67e9cfe3b542a375a6d9ebbf637862827d [file] [log] [blame]
<?xml version="1.0"?>
<project name="JSPWiki" default="site" basedir=".">
<property file="${user.home}/.ant.properties" />
<property file="${user.home}/build.properties" />
<property file=".ant.properties" />
<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"/>
<!-- Build classpath -->
<path id="classpath">
<fileset dir="./lib">
<include name="**/*.jar"/>
</fileset>
</path>
<!-- =================================================================== -->
<!-- prints the environment -->
<!-- =================================================================== -->
<target name="env">
<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 JSPWiki site -->
<!-- =================================================================== -->
<target name="site"
description="generates the HTML documentation"
>
<taskdef name="anakia"
classname="org.apache.velocity.anakia.AnakiaTask">
<classpath>
<path refid="classpath"/>
</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"
excludes="**/stylesheets/** empty.xml"
includes="**/*.xml"
lastModifiedCheck="true"
templatePath="xdocs/stylesheets">
</anakia>
<!-- top level images -->
<copy todir="${docs.dest}/images" filtering="no">
<fileset dir="${docs.src}/images">
<include name="**/*.gif"/>
<include name="**/*.jpeg"/>
<include name="**/*.jpg"/>
<include name="**/*.png"/>
</fileset>
</copy>
<copy todir="${docs.dest}/" filtering="no">
<fileset dir="${docs.src}">
<include name="**/*.txt"/>
</fileset>
</copy>
<copy file="${docs.src}/site.css" todir="${docs.dest}/"/>
</target>
</project>