| <?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="get-components"> |
| |
| <!-- ======================================================================== --> |
| <!-- == == --> |
| <!-- == Subroutines == --> |
| <!-- == == --> |
| <!-- ======================================================================== --> |
| <!-- ======================================================================== --> |
| <!-- == Subroutine: Copy the docbook system images == --> |
| <!-- ======================================================================== --> |
| |
| <target name="copy-docbook-images"> |
| |
| <copy todir="${target.dir.path}/images"> |
| <fileset dir="${docbook.xsl.dir}/images/"/> |
| </copy> |
| |
| </target> |
| |
| <!-- ======================================================================== --> |
| <!-- == Subroutine: Download Saxon == --> |
| <!-- ======================================================================== --> |
| |
| <target name="get-saxon" unless="saxon.available"> |
| <input |
| message="Downloading and unzipping (one time) Saxon's free XSLT package,
 |
| licensed under the Mozilla Public License Version 1.0;
 |
| you may not use this package except in compliance with the License.

 |
| You may obtain a copy of the License at http://www.mozilla.org/MPL/

Ok to download?" |
| validargs="y,n" addproperty="ok.download.saxon"/> |
| <condition property="do.download.saxon"> |
| <equals arg1="y" arg2="${ok.download.saxon}"/> |
| </condition> |
| <fail unless="do.download.saxon" message="Download aborted by user."/> |
| |
| <get src="http://prdownloads.sourceforge.net/saxon/saxon6-5-5.zip" dest="${tmp.dir}/saxon.zip"/> |
| <unzip src="${tmp.dir}/saxon.zip" dest="${tmp.dir}/saxon"/> |
| <copy file="${tmp.dir}/saxon/saxon.jar" tofile="${saxon.dir}/saxon.jar"/> |
| </target> |
| |
| <!-- ======================================================================== --> |
| <!-- == Subroutine: Download FOP == --> |
| <!-- ======================================================================== --> |
| |
| <target name="get-fop" unless="fop.available"> |
| <input |
| message="Downloading and unzipping (one time) Apache FOP version ${fop.version} for producing PDF output,
 |
| licensed under the Apache License Version 2.0;
 |
| you may not use this package except in compliance with the License.

 |
| You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.txt

Ok to download?" |
| validargs="y,n" addproperty="ok.download.fop"/> |
| <condition property="do.download.fop"> |
| <equals arg1="y" arg2="${ok.download.fop}"/> |
| </condition> |
| <fail unless="do.download.fop" message="Download aborted by user."/> |
| |
| <get src="http://archive.apache.org/dist/xmlgraphics/fop/binaries/fop-${fop.version}-bin.zip" dest="${tmp.dir}/fop.zip"/> |
| <unzip src="${tmp.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> |
| |
| <!-- ======================================================================== --> |
| <!-- == Subroutine: Download jai == --> |
| <!-- ======================================================================== --> |
| |
| <target name="get-jai" unless="jai.available"> |
| <input |
| message="Downloading and unzipping (one time) Java Advanced Imaging package (JAI),
 |
| licensed under the specific Sun license for JAI;
 |
| You may not use this package except in compliance with the License.

 |
| The license is contained in the download.

Note that your company may not find this license acceptable, and have other download alternatives; if so, manually place the jai_code.jar and jai_core.jar in the tools/jai-versions/jai-1.1.3 directory. Ok to download?" |
| validargs="y,n" addproperty="ok.download.jai"/> |
| <condition property="do.download.jai"> |
| <equals arg1="y" arg2="${ok.download.jai}"/> |
| </condition> |
| <fail unless="do.download.jai" message="Download aborted by user."/> |
| |
| <get src="http://download.java.net/media/jai/builds/release/1_1_3/jai-1_1_3-lib.zip" |
| dest="${tmp.dir}/jai.zip"/> |
| <unzip src="${tmp.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> |
| |
| <!-- ======================================================================== --> |
| <!-- == Subroutine: Unzip the docbook xml and xslt transformations == --> |
| <!-- ======================================================================== --> |
| <target name="get-docbook" description="internal: gets and unzips docbook xml and xsl style sheets" |
| unless="docbook.available"> |
| |
| <input |
| message="Downloading and unzipping (one time) the free docbook DTDs and XSLT packages.
 |
| The DTDs are copyrighted with the following permissions granted: |
| Copyright 1992-2004 HaL Computer Systems, Inc.,
 |
| O'Reilly & Associates, Inc., ArborText, Inc., Fujitsu Software
 |
| Corporation, Norman Walsh, Sun Microsystems, Inc., and the
 |
| Organization for the Advancement of Structured Information
 |
| Standards (OASIS).

 |
| Permission to use, copy, modify and distribute the DocBook DTD
 |
| and its accompanying documentation for any purpose and without fee
 |
| is hereby granted in perpetuity, provided that the above copyright
 |
| notice and this paragraph appear in all copies. The copyright
 |
| holders make no representation about the suitability of the DTD for
 |
| any purpose. It is provided "as is" without expressed or implied
 |
| warranty.

 |
| If you modify the DocBook DTD in any way, except for declaring and
 |
| referencing additional sets of general entities and declaring
 |
| additional notations, label your DTD as a variant of DocBook. See
 |
| the maintenance documentation for more information. 

 |
| The XSLT transforms come with the following copyright and permissions:
 |
| Permission is hereby granted, free of charge, to any person
 |
| obtaining a copy of this software and associated documentation
 |
| files (the ``Software''), to deal in the Software without
 |
| restriction, including without limitation the rights to use,
 |
| copy, modify, merge, publish, distribute, sublicense, and/or
 |
| sell copies of the Software, and to permit persons to whom the
 |
| Software is furnished to do so, subject to the following
 |
| conditions:

 |
| The above copyright notice and this permission notice shall be
 |
| included in all copies or substantial portions of the Software.
 |
| Except as contained in this notice, the names of individuals
 |
| credited with contribution to this software shall not be used in
 |
| advertising or otherwise to promote the sale, use or other
 |
| dealings in this Software without prior written authorization
 |
| from the individuals in question.

 |
| Any stylesheet derived from this Software that is publically
 |
| distributed will be identified with a different name and the
 |
| version strings in any derived Software will be changed so that
 |
| no possibility of confusion between the derived package and this
 |
| Software will exist.

 |
| Warranty
 |
| --------

 |
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 |
| EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
 |
| OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 |
| NONINFRINGEMENT. IN NO EVENT SHALL NORMAN WALSH OR ANY OTHER
 |
| CONTRIBUTOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
 |
| WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 |
| FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 |
| OTHER DEALINGS IN THE SOFTWARE.
 |
| 

Ok to download?" |
| validargs="y,n" addproperty="ok.download.docbooks"/> |
| |
| <condition property="do.download.docbooks"> |
| <equals arg1="y" arg2="${ok.download.docbooks}"/> |
| </condition> |
| <fail unless="do.download.docbooks" message="Download aborted by user."/> |
| |
| <mkdir dir="${docbook.xml.dir}"/> |
| <echo message="Downloading and unzipping (one time) docbook-xml-${docbook.xml.version}.zip"/> |
| <get |
| src="http://www.docbook.org/xml/${docbook.xml.version}/docbook-xml-${docbook.xml.version}.zip" |
| dest="${tmp.dir}/docbook-system-xml.zip"/> |
| <unzip src="${tmp.dir}/docbook-system-xml.zip" dest="${docbook.xml.dir}"/> |
| |
| <mkdir dir="${docbook.xsl.dir}"/> |
| <echo message="Downloading and unzipping (one time) docbook-xsl-${docbook.xsl.version}.zip"/> |
| <get src="http://downloads.sourceforge.net/docbook/docbook-xsl-${docbook.xsl.version}.zip" |
| dest="${tmp.dir}/docbook-system-xsl.zip"/> |
| |
| <unzip src="${tmp.dir}/docbook-system-xsl.zip" dest="${docbook.ref.dir}"/> |
| </target> |
| |
| </project> |