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