1 <?xml version="1.0" encoding="UTF-8"?>
4 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 Copyright 2008 by Sun Microsystems, Inc.
8 OpenOffice.org - a multi-platform office productivity suite
10 $RCSfile: build.xml,v $
14 This file is part of OpenOffice.org.
16 OpenOffice.org is free software: you can redistribute it and/or modify
17 it under the terms of the GNU Lesser General Public License version 3
18 only, as published by the Free Software Foundation.
20 OpenOffice.org is distributed in the hope that it will be useful,
21 but WITHOUT ANY WARRANTY; without even the implied warranty of
22 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 GNU Lesser General Public License version 3 for more details
24 (a copy is included in the LICENSE file that accompanied this code).
26 You should have received a copy of the GNU Lesser General Public License
27 version 3 along with OpenOffice.org. If not, see
28 <http://www.openoffice.org/license.html>
29 for a copy of the LGPLv3 License.
33 <project name="xmrg_java" default="main" basedir=".">
35 <!-- ================================================================= -->
37 <!-- ================================================================= -->
39 <!-- project prefix, used for targets and build.lst -->
40 <property name="prj.prefix" value="xmrg"/>
42 <!-- name of this sub target used in recursive builds -->
43 <property name="target" value="xmrg_java"/>
45 <!-- relative path to project directory -->
46 <property name="prj" value=".."/>
48 <!-- start of java source code package structure -->
49 <property name="java.dir" value="${prj}/java"/>
51 <!-- path component for current java package -->
52 <property name="package" value="."/>
54 <!-- define how to handle CLASSPATH environment -->
55 <property name="build.sysclasspath" value="ignore"/>
57 <!-- classpath settings for javac tasks -->
59 <pathelement location="${build.class}"/>
60 <pathelement location="${solar.jar}/xalan.jar"/>
61 <pathelement location="${solar.jar}/xml-apis.jar"/>
62 <pathelement location="${solar.jar}/xerces.jar"/>
63 <pathelement location="${solar.jar}/jurt.jar"/>
64 <pathelement location="${solar.jar}/unoil.jar"/>
65 <pathelement location="${solar.jar}/ridl.jar"/>
66 <pathelement location="${solar.jar}/sandbox.jar"/>
67 <pathelement location="${solar.jar}/juh.jar"/>
68 <pathelement location="${solar.jar}/jmc.jar"/>
71 <!-- set wether we want to compile with or without deprecation -->
72 <property name="deprecation" value="on"/>
74 <!-- ================================================================= -->
75 <!-- solar build environment targets -->
76 <!-- ================================================================= -->
78 <target name="build_dir" unless="build.dir">
79 <property name="build.dir" value="${out}"/>
82 <target name="solar" depends="build_dir" if="solar.update">
83 <property name="solar.properties"
84 value="${solar.bin}/solar.properties"/>
87 <target name="init" depends="solar">
88 <property name="build.compiler" value="classic"/>
89 <property file="${solar.properties}"/>
90 <property file="${build.dir}/class/solar.properties"/>
94 <echo message="--------------------"/>
95 <echo message="${target}"/>
96 <echo message="--------------------"/>
100 <!-- ================================================================= -->
101 <!-- custom targets -->
102 <!-- ================================================================= -->
104 <!-- the main target, called in recursive builds -->
105 <target name="main" depends="info,prepare,javadoc,zipdoc"/>
107 <!-- prepare output directories -->
108 <target name="prepare" depends="init" if="build.class">
109 <mkdir dir="${build.dir}"/>
110 <mkdir dir="${build.dir}/doc/javadoc"/>
113 <!-- compile java sources in ${package} and sub packages -->
114 <target name="javadoc" depends="prepare" if="build.dir">
115 <javadoc packagenames="org.openoffice.xmerge.*"
116 destdir="${build.dir}/doc/javadoc"
120 nodeprecatedlist="true"
122 Doctitle="OpenOffice XMerge API"
123 windowtitle="OpenOffice XMerge API"
124 sourcepath="${prj}/java"
125 excludepackagenames="org.openoffice.xmerge.test,org.openoffice.xmerge.converter.xml.sxc.minicalc"
126 classpathref="classpath">
127 <link offline="true" href="http://java.sun.com/j2se/1.3/docs/api" packagelistLoc="${solar.doc}/jdk13"/>
128 <bottom><![CDATA[<i>Copyright © 2002 OpenOffice.org</i>]]></bottom>
129 <header><![CDATA[<b>OpenOffice.org<br>XMerge API</b>]]></header>
133 <!-- zip together all the javadocs -->
134 <target name="zipdoc" depends="javadoc" if="build.dir">
135 <zip zipfile="${build.dir}/doc/xmerge_javadoc.zip"
136 basedir="${build.dir}/doc/javadoc"
141 <target name="clean" depends="prepare">
142 <delete includeEmptyDirs="true">
143 <fileset dir="${build.dir}/doc">