xref: /aoo42x/main/xmerge/util/build.xml (revision 9fd473e1)
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/xml-apis.jar"/> -->
35<!--        <pathelement location="${OUTDIR}/bin/xercesImpl.jar"/> -->
36        <pathelement location="${OUTDIR}/bin/unoil.jar"/>
37        <pathelement location="${OUTDIR}/bin/ridl.jar"/>
38        <pathelement location="${OUTDIR}/bin/jurt.jar"/>
39        <pathelement location="${OUTDIR}/bin/juh.jar"/>
40        <pathelement location="${OUTDIR}/bin/xmerge.jar"/>
41    </path>
42
43    <target name="init">
44        <mkdir dir="${javadoc.dir}"/>
45    </target>
46
47    <!-- build javadoc -->
48    <target name="javadoc" depends="init">
49        <javadoc destdir="${javadoc.dir}"
50             verbose="false"
51	         author="false"
52	         nodeprecated="true"
53	         nodeprecatedlist="true"
54             use="true"
55             Doctitle="Apache OpenOffice XMerge API"
56             windowtitle="Apache OpenOffice XMerge API"
57             classpathref="main.classpath">
58            <fileset dir="../java/XMergeBridge/src/main/java" defaultexcludes="yes">
59               <include name="**/*.java"/>
60            </fileset>
61            <fileset dir="../java/xmerge/src/main/java" defaultexcludes="yes">
62               <include name="**/*.java"/>
63            </fileset>
64            <fileset dir="../java/aportisdoc/src/main/java" defaultexcludes="yes">
65               <include name="**/*.java"/>
66            </fileset>
67            <fileset dir="../java/pexcel/src/main/java" defaultexcludes="yes">
68               <include name="**/*.java"/>
69            </fileset>
70            <fileset dir="../java/pocketword/src/main/java" defaultexcludes="yes">
71               <include name="**/*.java"/>
72            </fileset>
73             <link offline="true" href="http://java.sun.com/j2se/1.3/docs/api" packagelistLoc="${solar.doc}/jdk13"/>
74			<bottom><![CDATA[<i>Copyright &#169 2002 OpenOffice.org</i>]]></bottom>
75			<header><![CDATA[<b>OpenOffice.org<br>XMerge API</b>]]></header>
76        </javadoc>
77    </target>
78
79    <target name="main" depends="javadoc">
80        <jar destfile="${jar.dir}/${ant.project.name}.jar"
81             duplicate="fail">
82            <fileset dir="${javadoc.dir}"/>
83            <include name="**/*.class"/>
84            <include name="**/*.properties"/>
85            <include name="**/*.css"/>
86            <include name="**/*.dtd"/>
87            <include name="**/*.form"/>
88            <include name="**/*.gif "/>
89            <include name="**/*.htm"/>
90            <include name="**/*.html"/>
91            <include name="**/*.js"/>
92            <include name="**/*.mod"/>
93            <include name="**/*.sql"/>
94            <include name="**/*.xml"/>
95            <include name="**/*.xsl"/>
96            <include name="**/*.map"/>
97        </jar>
98    </target>
99
100     <target name="all" depends="javadoc">
101    </target>
102
103    <target name="clean">
104        <delete file="${javadoc.dir}"/>
105    </target>
106
107</project>
108
109