blob: d246bd38d3b11c7a587b7cf8b9f2608ea52e2d58 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you 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.
-->
<!--
Use this script to copy the docbook build prerequisites. This avoids having to
download them during the build. This script needs to be invoked manually. Adapt
the property below to your needs.
-->
<project name="Copy docbook prereqs from local repository" default="all" basedir=".">
<!--
Edit this property to point to the directory where you have cached the prereqs.
The files are (currently):
docbook-system-xml.zip
docbook-system-xsl.zip
fop.zip
jai.zip
saxon.zip
You can collect those files by doing one build the regular way, where those files are
downloaded.
If the docbook build changes, this script will need to be adapted.
-->
<property name="prereq.dir" location="/installers/docbook" />
<import file="../uima-docbook-tool/build/build-docbook.xml" />
<target name="all" depends="setup-common-properties-per-build,saxon,fop,jai,docbook">
</target>
<target name="saxon">
<unzip src="${prereq.dir}/saxon.zip" dest="${tmp.dir}/saxon" />
<copy file="${tmp.dir}/saxon/saxon.jar" tofile="${saxon.dir}/saxon.jar" />
</target>
<target name="fop">
<unzip src="${prereq.dir}/fop.zip" dest="${tmp.dir}/fop" />
<copy todir="${fop.dir}">
<fileset dir="${tmp.dir}/fop/fop-${fop.version}/build" />
<fileset dir="${tmp.dir}/fop/fop-${fop.version}/lib" />
</copy>
</target>
<target name="jai">
<unzip src="${prereq.dir}/jai.zip" dest="${tmp.dir}" />
<copy todir="${jai.dir}">
<fileset dir="${tmp.dir}/jai-1_1_3/lib">
<include name="jai_codec.jar" />
<include name="jai_core.jar" />
</fileset>
</copy>
</target>
<target name="docbook">
<mkdir dir="${docbook.xml.dir}" />
<unzip src="${prereq.dir}/docbook-system-xml.zip" dest="${docbook.xml.dir}" />
<mkdir dir="${docbook.xsl.dir}" />
<unzip src="${prereq.dir}/docbook-system-xsl.zip" dest="${docbook.ref.dir}" />
</target>
</project>