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