1<?xml version="1.0" encoding="UTF-8"?> 2<!--*********************************************************** 3 * 4 * Licensed to the Apache Software Foundation (ASF) under one 5 * or more contributor license agreements. See the NOTICE file 6 * distributed with this work for additional information 7 * regarding copyright ownership. The ASF licenses this file 8 * to you under the Apache License, Version 2.0 (the 9 * "License"); you may not use this file except in compliance 10 * with the License. You may obtain a copy of the License at 11 * 12 * http://www.apache.org/licenses/LICENSE-2.0 13 * 14 * Unless required by applicable law or agreed to in writing, 15 * software distributed under the License is distributed on an 16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17 * KIND, either express or implied. See the License for the 18 * specific language governing permissions and limitations 19 * under the License. 20 * 21 ***********************************************************--> 22 23<project name="externals"> 24 25 <!-- Each external has 3 properties set, for example for "commons-lang": 26 external.commons-lang.internalfilename - the filename when built internally, eg. commons-lang3-3.3.jar 27 external.commons-lang.jarclasspath - the path to be placed in the "Class-Path:" entry in JAR files linking to this JAR 28 external.commons-lang.path - the full path to the JAR 29 --> 30 31 <dirname property="externals.basedir" file="${ant.file.externals}"/> 32 33 <!-- global properties --> 34 <property file="${externals.basedir}/../../ant.properties"/> 35 36 <macrodef name="define-external"> 37 <attribute name="name"/> 38 <attribute name="system-test"/> 39 <attribute name="system-path"/> 40 <attribute name="internal-filename"/> 41 <sequential> 42 <property name="external.@{name}.internalfilename" value="@{internal-filename}"/> 43 <condition property="external.@{name}.jarclasspath" value="@{system-path}" else="${external.@{name}.internalfilename}"> 44 <equals arg1="@{system-test}" arg2="YES"/> 45 </condition> 46 <condition property="external.@{name}.path" value="@{system-path}" else="${OUTDIR}/bin/${external.@{name}.internalfilename}"> 47 <equals arg1="@{system-test}" arg2="YES"/> 48 </condition> 49 </sequential> 50 </macrodef> 51 52 <define-external 53 name="commons-codec" 54 system-test="${SYSTEM_APACHE_COMMONS}" 55 system-path="${COMMONS_CODEC_JAR}" 56 internal-filename="commons-codec-1.9.jar"/> 57 58 <define-external 59 name="commons-httpclient" 60 system-test="${SYSTEM_APACHE_COMMONS}" 61 system-path="${COMMONS_HTTPCLIENT_JAR}" 62 internal-filename="commons-httpclient-3.1.jar"/> 63 64 <define-external 65 name="commons-lang" 66 system-test="${SYSTEM_APACHE_COMMONS}" 67 system-path="${COMMONS_LANG_JAR}" 68 internal-filename="commons-lang3-3.3.jar"/> 69 70 <define-external 71 name="commons-logging" 72 system-test="${SYSTEM_APACHE_COMMONS}" 73 system-path="${COMMONS_LOGGING_JAR}" 74 internal-filename="commons-logging-1.1.3.jar"/> 75 76</project> 77