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.
32 <project name="xmrg_workben" default="main" basedir=".">
34 <!-- ================================================================= -->
36 <!-- ================================================================= -->
38 <!-- project prefix, used for targets and build.lst -->
39 <property name="prj.prefix" value="xmrg"/>
41 <!-- name of this sub target used in recursive builds -->
42 <property name="target" value="xmrg_workben"/>
44 <!-- relative path to project directory -->
45 <property name="prj" value=".."/>
47 <!-- start of java source code package structure -->
48 <property name="java.dir" value="${prj}/workben"/>
50 <!-- path component for current java package -->
51 <property name="package" value="."/>
53 <!-- define how to handle CLASSPATH environment -->
54 <property name="build.sysclasspath" value="ignore"/>
56 <property environment="env"/>
57 <property name="env.XML_APIS_JAR" value="${solar.jar}/xml-apis.jar"/>
58 <property name="env.XERCES_JAR" value="${solar.jar}/xercesImpl.jar"/>
60 <!-- classpath settings for javac tasks -->
62 <pathelement location="${build.class}"/>
63 <pathelement location="${env.XML_APIS_JAR}"/>
64 <pathelement location="${env.XERCES_JAR}"/>
67 <!-- set wether we want to compile with or without deprecation -->
68 <property name="deprecation" value="on"/>
70 <!-- ================================================================= -->
71 <!-- solar build environment targets -->
72 <!-- ================================================================= -->
74 <target name="build_dir" unless="build.dir">
75 <property name="build.dir" value="${out}"/>
78 <target name="solar" depends="build_dir" if="solar.update">
79 <property name="solar.properties"
80 value="${solar.bin}/solar.properties"/>
83 <target name="init" depends="solar">
84 <property name="build.compiler" value="classic"/>
85 <property file="${solar.properties}"/>
86 <property file="${build.dir}/class/solar.properties"/>
90 <echo message="--------------------"/>
91 <echo message="${target}"/>
92 <echo message="--------------------"/>
96 <!-- ================================================================= -->
97 <!-- custom targets -->
98 <!-- ================================================================= -->
100 <!-- the main target, called in recursive builds -->
101 <target name="main" depends="info,prepare,compile"/>
103 <!-- prepare output directories -->
104 <target name="prepare" depends="init" if="build.class">
105 <mkdir dir="${build.dir}"/>
106 <mkdir dir="${build.class}"/>
109 <!-- compile java sources in ${package} and sub packages -->
110 <target name="compile" depends="prepare" if="build.class">
111 <javac srcdir="${java.dir}"
112 destdir="${build.class}"
114 deprecation="${deprecation}"
115 optimize="${optimize}">
116 <classpath refid="classpath"/>
117 <include name="XmlDiff.java"/>
122 <target name="clean" depends="prepare">
123 <delete includeEmptyDirs="true">
124 <fileset dir="${build.class}">
126 <include name="${package}/**/*.class"/>