You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by tw...@apache.org on 2009/07/16 17:03:36 UTC
svn commit: r794706 -
/incubator/uima/uimaj/trunk/uima-docbooks/copy-docbook-prereqs.xml
Author: twgoetz
Date: Thu Jul 16 15:03:35 2009
New Revision: 794706
URL: http://svn.apache.org/viewvc?rev=794706&view=rev
Log:
UIMA-1440: Ant script to copy docbook build libraries from local repository (as opposed to downloading them).
https://issues.apache.org/jira/browse/UIMA-1440
Added:
incubator/uima/uimaj/trunk/uima-docbooks/copy-docbook-prereqs.xml
Added: incubator/uima/uimaj/trunk/uima-docbooks/copy-docbook-prereqs.xml
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uima-docbooks/copy-docbook-prereqs.xml?rev=794706&view=auto
==============================================================================
--- incubator/uima/uimaj/trunk/uima-docbooks/copy-docbook-prereqs.xml (added)
+++ incubator/uima/uimaj/trunk/uima-docbooks/copy-docbook-prereqs.xml Thu Jul 16 15:03:35 2009
@@ -0,0 +1,73 @@
+<?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.
+-->
+
+
+<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
+
+ 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>