| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| |
| Copyright 2006 The Apache Software Foundation |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <project name="Apache UIMA website" 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="docs.src = ${docs.src}"/> |
| <echo message="docs.dest = ${docs.dest}"/> |
| <echo message=""/> |
| |
| </target> |
| |
| <!-- =================================================================== --> |
| <!-- Make HTML version of 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> |
| |
| <!-- ip-clearances excluded - these are processed with the incubator |
| base website's framework using the |
| build-ip-clearances.xml ant script instead --> |
| <anakia basedir="${docs.src}" destdir="${docs.dest}/" |
| extension=".html" style="xdocs/stylesheets/site.vsl" |
| projectFile="stylesheets/project.xml" |
| excludes="**/stylesheets*/** **/downloads/** empty.xml **/ip-clearances/**" |
| includes="**/*.xml" |
| lastModifiedCheck="true" |
| templatePath="xdocs/stylesheets" |
| velocityPropertiesFile="xdocs/stylesheets/velocity.properties"> |
| </anakia> |
| |
| <!-- convert x99 (tm) to & trade ; --> |
| <replace dir="${docs.dest}/" token="™" value="&trade;" summary="true" |
| encoding="UTF-8"> |
| <include name="*.html"/> |
| <include name="staging/*.html"/> |
| </replace> |
| <!-- |
| <fixcrlf srcdir="${docs.dest}/" eol="crlf"> |
| <include name="d/uimaj-2.4.1/apidocs/**/*.html"/> |
| </fixcrlf> |
| --> |
| <!--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}/downloads" filtering="no"> |
| <fileset dir="${docs.src}/downloads"/> |
| </copy--> |
| |
| <!-- In case we have CSS someday |
| <copy todir="${docs.dest}" filtering="no"> |
| <fileset dir="${docs.src}"> |
| <include name="**/*.css"/> |
| </fileset> |
| </copy> |
| --> |
| </target> |
| |
| </project> |
| |