bottleneck testcase based on rubbos
[bottlenecks.git] / rubbos / app / tomcat-connectors-1.2.32-src / xdocs / build.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   Licensed to the Apache Software Foundation (ASF) under one or more
4   contributor license agreements.  See the NOTICE file distributed with
5   this work for additional information regarding copyright ownership.
6   The ASF licenses this file to You under the Apache License, Version 2.0
7   (the "License"); you may not use this file except in compliance with
8   the License.  You may obtain a copy of the License at
9
10       http://www.apache.org/licenses/LICENSE-2.0
11
12   Unless required by applicable law or agreed to in writing, software
13   distributed under the License is distributed on an "AS IS" BASIS,
14   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   See the License for the specific language governing permissions and
16   limitations under the License.
17 -->
18 <project name="tomcat-docs" default="build-main" basedir=".">
19
20
21   <!-- ===================== Initialize Property Values =================== -->
22
23   <!-- See "build.properties.sample" in the top level directory for all     -->
24   <!-- property values you must customize for successful building!!!        -->
25   <property file="build.properties"/>
26   <property file="../build.properties"/>
27   <property file="../../build.properties"/>
28   <property file="${user.home}/build.properties"/>
29
30   <property name="build.compiler"  value="modern"/>
31   <property name="build.dir"   value="../build"/>
32   <property name="dist.dir"    value="../dist"/>
33   <property name="dist.name"     value="docs"/>
34
35
36   <!-- =================== BUILD: Create Directories ====================== -->
37   <target name="build-prepare">
38     <mkdir dir="${build.dir}"/>
39     <mkdir dir="${build.dir}/${dist.name}"/>
40   </target>
41
42
43   <!-- ================ BUILD: Copy Static Files ========================== -->
44   <target name="build-static" depends="build-prepare">
45
46     <!-- Top Level Static Files -->
47     <copy    todir="${build.dir}/${dist.name}">
48       <fileset dir=".">
49         <include name="BUILDING.txt"/>
50         <include name="README.txt"/>
51         <include name="RUNNING.txt"/>
52         <include name="style.css"/>
53       </fileset>
54     </copy>
55     <copy    todir="${build.dir}/${dist.name}">
56       <fileset dir="." includes="**/*.html"/>
57     </copy>
58
59     <!-- Images Subdirectory -->
60     <mkdir     dir="${build.dir}/${dist.name}/images"/>
61     <copy    todir="${build.dir}/${dist.name}/images">
62       <fileset dir="images"/>
63     </copy>
64
65     <mkdir     dir="${build.dir}/${dist.name}/printer"/>
66     <!-- Top Level Static Files -->
67     <copy    todir="${build.dir}/${dist.name}/printer">
68       <fileset dir=".">
69         <include name="BUILDING.txt"/>
70         <include name="README.txt"/>
71         <include name="RUNNING.txt"/>
72       </fileset>
73     </copy>
74     <style basedir="."
75            destdir="${build.dir}/${dist.name}/printer"
76          extension=".html"
77              style="style.xsl"
78           excludes="build.xml project.xml empty.xml"
79           includes="*.xml">
80       <param name="relative-path" expression="./.."/>
81       <param name="project-menu" expression="nomenu"/>
82     </style>
83
84     <!-- Reference Guide -->
85     <style basedir="reference"
86            destdir="${build.dir}/${dist.name}/reference"
87          extension=".html"
88              style="style.xsl"
89           excludes="project.xml"
90           includes="*.xml">
91       <param name="relative-path" expression=".."/>
92     </style>
93     <mkdir     dir="${build.dir}/${dist.name}/reference/printer"/>
94     <style basedir="reference"
95            destdir="${build.dir}/${dist.name}/reference/printer"
96          extension=".html"
97              style="style.xsl"
98           excludes="project.xml"
99           includes="*.xml">
100       <param name="relative-path" expression="../.."/>
101       <param name="project-menu" expression="nomenu"/>
102     </style>
103
104     <!-- Generic Howto -->
105     <style basedir="generic_howto"
106            destdir="${build.dir}/${dist.name}/generic_howto"
107          extension=".html"
108              style="style.xsl"
109           excludes="project.xml"
110           includes="*.xml">
111       <param name="relative-path" expression=".."/>
112     </style>
113     <mkdir     dir="${build.dir}/${dist.name}/generic_howto/printer"/>
114     <style basedir="generic_howto"
115            destdir="${build.dir}/${dist.name}/generic_howto/printer"
116          extension=".html"
117              style="style.xsl"
118           excludes="project.xml"
119           includes="*.xml">
120       <param name="relative-path" expression="../.."/>
121       <param name="project-menu" expression="nomenu"/>
122     </style>
123
124         <!-- Webserver Howto -->
125         <style basedir="webserver_howto"
126                destdir="${build.dir}/${dist.name}/webserver_howto"
127              extension=".html"
128                  style="style.xsl"
129               excludes="project.xml"
130               includes="*.xml">
131           <param name="relative-path" expression=".."/>
132         </style>
133         <mkdir     dir="${build.dir}/${dist.name}/webserver_howto/printer"/>
134         <style basedir="webserver_howto"
135                destdir="${build.dir}/${dist.name}/webserver_howto/printer"
136              extension=".html"
137                  style="style.xsl"
138               excludes="project.xml"
139               includes="*.xml">
140           <param name="relative-path" expression="../.."/>
141           <param name="project-menu" expression="nomenu"/>
142         </style>
143
144         <!-- AJP Protocol Reference -->
145         <style basedir="ajp"
146                destdir="${build.dir}/${dist.name}/ajp"
147              extension=".html"
148                  style="style.xsl"
149               excludes="project.xml"
150               includes="*.xml">
151           <param name="relative-path" expression=".."/>
152         </style>
153         <mkdir     dir="${build.dir}/${dist.name}/ajp/printer"/>
154         <style basedir="ajp"
155                destdir="${build.dir}/${dist.name}/ajp/printer"
156              extension=".html"
157                  style="style.xsl"
158               excludes="project.xml"
159               includes="*.xml">
160           <param name="relative-path" expression="../.."/>
161           <param name="project-menu" expression="nomenu"/>
162         </style>
163
164         <!-- Miscellaneous Documentation -->
165         <style basedir="miscellaneous"
166                destdir="${build.dir}/${dist.name}/miscellaneous"
167              extension=".html"
168                  style="style.xsl"
169               excludes="project.xml"
170               includes="*.xml">
171           <param name="relative-path" expression=".."/>
172         </style>
173         <mkdir     dir="${build.dir}/${dist.name}/miscellaneous/printer"/>
174         <style basedir="miscellaneous"
175                destdir="${build.dir}/${dist.name}/miscellaneous/printer"
176              extension=".html"
177                  style="style.xsl"
178               excludes="project.xml"
179               includes="*.xml">
180           <param name="relative-path" expression="../.."/>
181           <param name="project-menu" expression="nomenu"/>
182         </style>
183
184         <!-- News -->
185         <style basedir="news"
186                destdir="${build.dir}/${dist.name}/news"
187              extension=".html"
188                  style="style.xsl"
189               excludes="project.xml"
190               includes="*.xml">
191           <param name="relative-path" expression=".."/>
192         </style>
193         <mkdir     dir="${build.dir}/${dist.name}/news/printer"/>
194         <style basedir="news"
195                destdir="${build.dir}/${dist.name}/news/printer"
196              extension=".html"
197                  style="style.xsl"
198               excludes="project.xml"
199               includes="*.xml">
200           <param name="relative-path" expression="../.."/>
201           <param name="project-menu" expression="nomenu"/>
202         </style>
203  
204   </target>
205
206
207   <!-- ================= BUILD: XML-HTML Generation ======================= -->
208   <target name="build-main" depends="build-static">
209
210     <!-- Top Level Directory -->
211     <style basedir="."
212            destdir="${build.dir}/${dist.name}"
213          extension=".html"
214              style="style.xsl"
215           excludes="build.xml project.xml empty.xml"
216           includes="*.xml">
217       <param name="relative-path" expression="."/>
218     </style>
219
220   </target>
221
222
223   <!-- ==================== BUILD: Rebuild Everything ===================== -->
224   <target name="all" depends="build-clean,build-main"
225    description="Clean and build documentation"/>
226
227
228   <!-- ======================= BUILD: Clean Directory ===================== -->
229   <target name="build-clean">
230     <delete dir="${build.dir}/${dist.name}"/>
231   </target>
232
233
234   <!-- ======================= DIST: Create Directories =================== -->
235   <target name="dist-prepare">
236     <mkdir dir="${dist.dir}"/>
237   </target>
238
239
240   <!-- ======================= DIST: Create Distribution Files ============ -->
241   <target name="dist" depends="build-main,dist-prepare"
242    description="Create documentation binary distribution">
243       <jar   jarfile="${dist.dir}/${dist.name}.war"
244              basedir="${build.dir}/${dist.name}" includes="**"/>
245   </target>
246
247
248   <!-- ======================= DIST: Clean Directory ====================== -->
249   <target name="dist-clean">
250     <delete dir="${dist.dir}/${dist.name}"/>
251   </target>
252
253
254   <!-- ====================== Convenient Synonyms ========================= -->
255   <target name="clean" depends="build-clean,dist-clean"
256    description="Clean build and dist directories"/>
257
258
259 </project>