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 ***********************************************************--> 22cdf0e10cSrcweir 23cdf0e10cSrcweir 24cdf0e10cSrcweir<project name="xmrg_workben" default="main" basedir="."> 25cdf0e10cSrcweir 26cdf0e10cSrcweir <!-- ================================================================= --> 27cdf0e10cSrcweir <!-- settings --> 28cdf0e10cSrcweir <!-- ================================================================= --> 29cdf0e10cSrcweir 30cdf0e10cSrcweir <!-- project prefix, used for targets and build.lst --> 31cdf0e10cSrcweir <property name="prj.prefix" value="xmrg"/> 32cdf0e10cSrcweir 33cdf0e10cSrcweir <!-- name of this sub target used in recursive builds --> 34cdf0e10cSrcweir <property name="target" value="xmrg_workben"/> 35cdf0e10cSrcweir 36cdf0e10cSrcweir <!-- relative path to project directory --> 37cdf0e10cSrcweir <property name="prj" value=".."/> 38cdf0e10cSrcweir 39cdf0e10cSrcweir <!-- start of java source code package structure --> 40cdf0e10cSrcweir <property name="java.dir" value="${prj}/workben"/> 41cdf0e10cSrcweir 42cdf0e10cSrcweir <!-- path component for current java package --> 43cdf0e10cSrcweir <property name="package" value="."/> 44cdf0e10cSrcweir 45cdf0e10cSrcweir <!-- define how to handle CLASSPATH environment --> 46cdf0e10cSrcweir <property name="build.sysclasspath" value="ignore"/> 47cdf0e10cSrcweir 48cdf0e10cSrcweir <property environment="env"/> 49cdf0e10cSrcweir <property name="env.XML_APIS_JAR" value="${solar.jar}/xml-apis.jar"/> 50cdf0e10cSrcweir <property name="env.XERCES_JAR" value="${solar.jar}/xercesImpl.jar"/> 51cdf0e10cSrcweir 52cdf0e10cSrcweir <!-- classpath settings for javac tasks --> 53cdf0e10cSrcweir <path id="classpath"> 54cdf0e10cSrcweir <pathelement location="${build.class}"/> 55cdf0e10cSrcweir <pathelement location="${env.XML_APIS_JAR}"/> 56cdf0e10cSrcweir <pathelement location="${env.XERCES_JAR}"/> 57cdf0e10cSrcweir </path> 58cdf0e10cSrcweir 59cdf0e10cSrcweir <!-- set wether we want to compile with or without deprecation --> 60cdf0e10cSrcweir <property name="deprecation" value="on"/> 61cdf0e10cSrcweir 62cdf0e10cSrcweir <!-- ================================================================= --> 63cdf0e10cSrcweir <!-- solar build environment targets --> 64cdf0e10cSrcweir <!-- ================================================================= --> 65cdf0e10cSrcweir 66cdf0e10cSrcweir <target name="build_dir" unless="build.dir"> 67cdf0e10cSrcweir <property name="build.dir" value="${out}"/> 68cdf0e10cSrcweir </target> 69cdf0e10cSrcweir 70cdf0e10cSrcweir <target name="solar" depends="build_dir" if="solar.update"> 71cdf0e10cSrcweir <property name="solar.properties" 72cdf0e10cSrcweir value="${solar.bin}/solar.properties"/> 73cdf0e10cSrcweir </target> 74cdf0e10cSrcweir 75cdf0e10cSrcweir <target name="init" depends="solar"> 76*8b0d3335SPedro Giffuni <property name="build.compiler" value="modern"/> 77cdf0e10cSrcweir <property file="${solar.properties}"/> 78cdf0e10cSrcweir <property file="${build.dir}/class/solar.properties"/> 79cdf0e10cSrcweir </target> 80cdf0e10cSrcweir 81cdf0e10cSrcweir <target name="info"> 82cdf0e10cSrcweir <echo message="--------------------"/> 83cdf0e10cSrcweir <echo message="${target}"/> 84cdf0e10cSrcweir <echo message="--------------------"/> 85cdf0e10cSrcweir </target> 86cdf0e10cSrcweir 87cdf0e10cSrcweir 88cdf0e10cSrcweir <!-- ================================================================= --> 89cdf0e10cSrcweir <!-- custom targets --> 90cdf0e10cSrcweir <!-- ================================================================= --> 91cdf0e10cSrcweir 92cdf0e10cSrcweir <!-- the main target, called in recursive builds --> 93cdf0e10cSrcweir <target name="main" depends="info,prepare,compile"/> 94cdf0e10cSrcweir 95cdf0e10cSrcweir <!-- prepare output directories --> 96cdf0e10cSrcweir <target name="prepare" depends="init" if="build.class"> 97cdf0e10cSrcweir <mkdir dir="${build.dir}"/> 98cdf0e10cSrcweir <mkdir dir="${build.class}"/> 99cdf0e10cSrcweir </target> 100cdf0e10cSrcweir 101cdf0e10cSrcweir <!-- compile java sources in ${package} and sub packages --> 102cdf0e10cSrcweir <target name="compile" depends="prepare" if="build.class"> 103cdf0e10cSrcweir <javac srcdir="${java.dir}" 104cdf0e10cSrcweir destdir="${build.class}" 105cdf0e10cSrcweir debug="${debug}" 106cdf0e10cSrcweir deprecation="${deprecation}" 107cdf0e10cSrcweir optimize="${optimize}"> 108cdf0e10cSrcweir <classpath refid="classpath"/> 109cdf0e10cSrcweir <include name="XmlDiff.java"/> 110cdf0e10cSrcweir </javac> 111cdf0e10cSrcweir </target> 112cdf0e10cSrcweir 113cdf0e10cSrcweir <!-- clean up --> 114cdf0e10cSrcweir <target name="clean" depends="prepare"> 115cdf0e10cSrcweir <delete includeEmptyDirs="true"> 116cdf0e10cSrcweir <fileset dir="${build.class}"> 117cdf0e10cSrcweir <patternset> 118cdf0e10cSrcweir <include name="${package}/**/*.class"/> 119cdf0e10cSrcweir </patternset> 120cdf0e10cSrcweir </fileset> 121cdf0e10cSrcweir </delete> 122cdf0e10cSrcweir </target> 123cdf0e10cSrcweir 124cdf0e10cSrcweir</project> 125