xref: /trunk/main/xmerge/util/build.xml (revision 45c5a00162811bd03b87fcb4fe9996782f2b59ec)
1<?xml version="1.0" encoding="UTF-8"?>
2<!--***********************************************************
3 *
4 * Licensed to the Apache Software Foundation (ASF) under one
5 * or more contributor license agreements.  See the NOTICE file
6 * distributed with this work for additional information
7 * regarding copyright ownership.  The ASF licenses this file
8 * to you under the Apache License, Version 2.0 (the
9 * "License"); you may not use this file except in compliance
10 * with the License.  You may obtain a copy of the License at
11 *
12 *   http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing,
15 * software distributed under the License is distributed on an
16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 * KIND, either express or implied.  See the License for the
18 * specific language governing permissions and limitations
19 * under the License.
20 *
21 ***********************************************************-->
22
23
24<project name="xmerge-javadoc" default="main" basedir=".">
25
26    <property file="../../ant.properties"/>
27    <import file="${SRC_ROOT}/solenv/ant/aoo-ant.xml"/>
28
29    <property file="../source/inc/antbuild.properties"/>
30
31    <property name="javadoc.dir" location="${WORKDIR}/Ant/xmerge-javadoc"/>
32
33    <path id="main.classpath">
34        <pathelement location="${OUTDIR}/bin/unoil.jar"/>
35        <pathelement location="${OUTDIR}/bin/ridl.jar"/>
36        <pathelement location="${OUTDIR}/bin/jurt.jar"/>
37        <pathelement location="${OUTDIR}/bin/juh.jar"/>
38        <pathelement location="${OUTDIR}/bin/xmerge.jar"/>
39    </path>
40
41    <target name="init">
42        <mkdir dir="${javadoc.dir}"/>
43    </target>
44
45    <!-- build javadoc -->
46    <target name="javadoc" depends="init">
47        <javadoc destdir="${javadoc.dir}"
48             verbose="false"
49             author="false"
50             nodeprecated="true"
51             nodeprecatedlist="true"
52             use="true"
53             Doctitle="Apache OpenOffice XMerge API"
54             windowtitle="Apache OpenOffice XMerge API"
55             classpathref="main.classpath">
56            <fileset dir="../java/XMergeBridge/src/main/java" defaultexcludes="yes">
57               <include name="**/*.java"/>
58            </fileset>
59            <fileset dir="../java/xmerge/src/main/java" defaultexcludes="yes">
60               <include name="**/*.java"/>
61            </fileset>
62            <fileset dir="../java/aportisdoc/src/main/java" defaultexcludes="yes">
63               <include name="**/*.java"/>
64            </fileset>
65            <fileset dir="../java/pexcel/src/main/java" defaultexcludes="yes">
66               <include name="**/*.java"/>
67            </fileset>
68            <fileset dir="../java/pocketword/src/main/java" defaultexcludes="yes">
69               <include name="**/*.java"/>
70            </fileset>
71             <link offline="true" href="http://java.sun.com/j2se/1.3/docs/api" packagelistLoc="${solar.doc}/jdk13"/>
72            <bottom><![CDATA[<i>Copyright &#169 2002 OpenOffice.org</i>]]></bottom>
73            <header><![CDATA[<b>OpenOffice.org<br>XMerge API</b>]]></header>
74        </javadoc>
75    </target>
76
77    <target name="main" depends="javadoc">
78        <jar destfile="${jar.dir}/${ant.project.name}.jar"
79             duplicate="fail">
80            <fileset dir="${javadoc.dir}"/>
81            <include name="**/*.class"/>
82            <include name="**/*.properties"/>
83            <include name="**/*.css"/>
84            <include name="**/*.dtd"/>
85            <include name="**/*.form"/>
86            <include name="**/*.gif "/>
87            <include name="**/*.htm"/>
88            <include name="**/*.html"/>
89            <include name="**/*.js"/>
90            <include name="**/*.mod"/>
91            <include name="**/*.sql"/>
92            <include name="**/*.xml"/>
93            <include name="**/*.xsl"/>
94            <include name="**/*.map"/>
95        </jar>
96    </target>
97
98     <target name="all" depends="javadoc">
99    </target>
100
101    <target name="clean">
102        <delete file="${javadoc.dir}"/>
103    </target>
104
105</project>
106