1<?xml version="1.0" encoding="UTF-8"?> 2<!-- 3 4 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 5 6 Copyright 2000, 2010 Oracle and/or its affiliates. 7 8 OpenOffice.org - a multi-platform office productivity suite 9 10 This file is part of OpenOffice.org. 11 12 OpenOffice.org is free software: you can redistribute it and/or modify 13 it under the terms of the GNU Lesser General Public License version 3 14 only, as published by the Free Software Foundation. 15 16 OpenOffice.org is distributed in the hope that it will be useful, 17 but WITHOUT ANY WARRANTY; without even the implied warranty of 18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 GNU Lesser General Public License version 3 for more details 20 (a copy is included in the LICENSE file that accompanied this code). 21 22 You should have received a copy of the GNU Lesser General Public License 23 version 3 along with OpenOffice.org. If not, see 24 <http://www.openoffice.org/license.html> 25 for a copy of the LGPLv3 License. 26 27--> 28<project name="xmrg_workben" default="main" basedir="."> 29 30 <!-- ================================================================= --> 31 <!-- settings --> 32 <!-- ================================================================= --> 33 34 <!-- project prefix, used for targets and build.lst --> 35 <property name="prj.prefix" value="xmrg"/> 36 37 <!-- name of this sub target used in recursive builds --> 38 <property name="target" value="xmrg_workben"/> 39 40 <!-- relative path to project directory --> 41 <property name="prj" value=".."/> 42 43 <!-- start of java source code package structure --> 44 <property name="java.dir" value="${prj}/workben"/> 45 46 <!-- path component for current java package --> 47 <property name="package" value="."/> 48 49 <!-- define how to handle CLASSPATH environment --> 50 <property name="build.sysclasspath" value="ignore"/> 51 52 <property environment="env"/> 53 <property name="env.XML_APIS_JAR" value="${solar.jar}/xml-apis.jar"/> 54 <property name="env.XERCES_JAR" value="${solar.jar}/xercesImpl.jar"/> 55 56 <!-- classpath settings for javac tasks --> 57 <path id="classpath"> 58 <pathelement location="${build.class}"/> 59 <pathelement location="${env.XML_APIS_JAR}"/> 60 <pathelement location="${env.XERCES_JAR}"/> 61 </path> 62 63 <!-- set wether we want to compile with or without deprecation --> 64 <property name="deprecation" value="on"/> 65 66 <!-- ================================================================= --> 67 <!-- solar build environment targets --> 68 <!-- ================================================================= --> 69 70 <target name="build_dir" unless="build.dir"> 71 <property name="build.dir" value="${out}"/> 72 </target> 73 74 <target name="solar" depends="build_dir" if="solar.update"> 75 <property name="solar.properties" 76 value="${solar.bin}/solar.properties"/> 77 </target> 78 79 <target name="init" depends="solar"> 80 <property name="build.compiler" value="classic"/> 81 <property file="${solar.properties}"/> 82 <property file="${build.dir}/class/solar.properties"/> 83 </target> 84 85 <target name="info"> 86 <echo message="--------------------"/> 87 <echo message="${target}"/> 88 <echo message="--------------------"/> 89 </target> 90 91 92 <!-- ================================================================= --> 93 <!-- custom targets --> 94 <!-- ================================================================= --> 95 96 <!-- the main target, called in recursive builds --> 97 <target name="main" depends="info,prepare,compile"/> 98 99 <!-- prepare output directories --> 100 <target name="prepare" depends="init" if="build.class"> 101 <mkdir dir="${build.dir}"/> 102 <mkdir dir="${build.class}"/> 103 </target> 104 105 <!-- compile java sources in ${package} and sub packages --> 106 <target name="compile" depends="prepare" if="build.class"> 107 <javac srcdir="${java.dir}" 108 destdir="${build.class}" 109 debug="${debug}" 110 deprecation="${deprecation}" 111 optimize="${optimize}"> 112 <classpath refid="classpath"/> 113 <include name="XmlDiff.java"/> 114 </javac> 115 </target> 116 117 <!-- clean up --> 118 <target name="clean" depends="prepare"> 119 <delete includeEmptyDirs="true"> 120 <fileset dir="${build.class}"> 121 <patternset> 122 <include name="${package}/**/*.class"/> 123 </patternset> 124 </fileset> 125 </delete> 126 </target> 127 128</project> 129