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