<?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. | |
--> | |
<!-- This file is <imported...> into other files, so the | |
properties it sets can be referenced there | |
--> | |
<project name="common-properties-per-book"> | |
<target name="setup-common-properties-per-book"> | |
<fail message="You must set book_name"> | |
<condition> | |
<not> | |
<isset property="book_name" /> | |
</not> | |
</condition> | |
</fail> | |
<!-- if chapter_name is not set, set it to the book_name --> | |
<condition property="chapter_name" value="${book_name}"> | |
<isset property="book_name" /> | |
</condition> | |
<condition property="docbook.outname" value="${chapter_name}"> | |
<isset property="chapter_name" /> | |
</condition> | |
<!-- if olink_work is not set, set it to yes --> | |
<property name="olink_work" value="yes"/> | |
<!-- skip some steps if olink_work value is "only" --> | |
<condition property="do_olinkdb_only"> | |
<equals arg1="${olink_work}" arg2="only" /> | |
</condition> | |
<!-- set up to date values for this docbook --> | |
<uptodate property="target-book-pdf-uptodate"> | |
<srcfiles dir="${styles.dir}" includes="**/*.*" /> | |
<srcfiles dir="${docbook.src.dir}/${book_name}" includes="*.xml" /> | |
<!--srcfiles dir="${olink.dir.path}" includes="*/pdf-target.db" /--> | |
<srcfiles dir="${docbook.src.dir}/${book_name}/images" excludes="*/*.ppt"/> | |
<mergemapper to="${target.dir}${file.separator}${book_name}${file.separator}${docbook.outname}.pdf" /> | |
</uptodate> | |
<uptodate property="target-book-html-single-uptodate"> | |
<srcfiles dir="${styles.dir}" includes="**/*.*" /> | |
<srcfiles dir="${docbook.src.dir}/${book_name}" includes="*.xml" /> | |
<!--srcfiles dir="${olink.dir.path}" includes="*/htmlsingle-target.db" /--> | |
<srcfiles dir="${docbook.src.dir}/${book_name}/images" excludes="*/*.ppt"/> | |
<mergemapper to="${target.dir}${file.separator}${book_name}${file.separator}${docbook.outname}.html" /> | |
</uptodate> | |
<uptodate property="target-book-html-chunked-uptodate"> | |
<srcfiles dir="${styles.dir}" includes="**/*.*" /> | |
<srcfiles dir="${docbook.src.dir}/${book_name}" includes="*.xml" /> | |
<!--srcfiles dir="${olink.dir.path}" includes="*/htmlchunked-target.db" /--> | |
<srcfiles dir="${docbook.src.dir}/${book_name}/images" excludes="*/*.ppt"/> | |
<mergemapper to="${target.dir}${file.separator}${book_name}${file.separator}${docbook.outname}${file.separator}index.html" /> | |
</uptodate> | |
<uptodate property="target-book-images-uptodate"> | |
<srcfiles dir="${docbook.src.dir}/${book_name}/images" excludes="*/*.ppt"/> | |
<globmapper from="*" | |
to="${target.dir}${file.separator}images${file.separator}${book_name}${file.separator}*"/> | |
</uptodate> | |
<condition property="skip-or-uptodate.pdf"> | |
<or> | |
<isset property="skip.pdf" /> | |
<isset property="target-book-pdf-uptodate" /> | |
</or> | |
</condition> | |
<condition property="skip-or-uptodate.html-chunked"> | |
<or> | |
<isset property="skip.html-chunked" /> | |
<isset property="target-book-html-chunked-uptodate" /> | |
</or> | |
</condition> | |
<condition property="skip-or-uptodate.html-single"> | |
<or> | |
<isset property="skip.html-single" /> | |
<isset property="target-book-html-single-uptodate" /> | |
</or> | |
</condition> | |
</target> | |
</project> |