To protect your data, the CISO officer has suggested users to enable GitLab 2FA as soon as possible.

build.xml 2.71 KB
Newer Older
1
2
3
4
5
6
7
8
<!--
 * Copyright (c) 2009 The Australian National University.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Apache License v2.0.
 * You may obtain the license at
 * 
 *    http://www.opensource.org/licenses/apache2.0.php
 -->
9
<project name="derby" default="all" basedir="../..">
john's avatar
john committed
10
11
    <description>derby library required for h2 testing</description>
    <property file="ant/dacapo.properties"/>
12

john's avatar
john committed
13
14
15
16
    <property name="lib-name" value="derby"/>
    <property name="lib-version" value="10.5.3.0"/>
    <property name="lib-url" value="${apache.dl.url}/db/derby/db-derby-${lib-version}"/>
    <property name="lib-src" value="db-derby-${lib-version}-src.tar.gz"/>
17

john's avatar
john committed
18
    <import file="../common.xml"/>
19

john's avatar
john committed
20
    <property name="lib-build-top" value="${lib-build-dir}/db-derby-${lib-version}-src"/>
21

john's avatar
john committed
22
23
24
    <target name="unpack" depends="untar">
        <patch patchfile="libs/${lib-name}/${lib-name}.patch" dir="${lib-build-dir}" strip="1" ignorewhitespace="yes"/>
    </target>
25

john's avatar
john committed
26
27
28
29
30
31
    <target name="build">
        <copy tofile="${lib-build-top}/tools/java/junit.jar">
            <fileset dir="${basedir}/libs/junit/dist/jar">
                <include name="*.jar"/>
            </fileset>
        </copy>
32
33
34
35
36
37
38
39
40
41
        <exec executable="${ant.home}/bin/ant" dir="${lib-build-top}" failonerror="yes">
            <arg line="all"/>
            <arg line="-Dj16lib=${j16lib}"/>
            <env key="JAVA_HOME" value="${jdk16home}"/>
        </exec>
        <exec executable="${ant.home}/bin/ant" dir="${lib-build-top}" failonerror="yes">
            <arg line="buildjars"/>
            <arg line="-Dj16lib=${j16lib}"/>
            <env key="JAVA_HOME" value="${jdk16home}"/>
        </exec>
john's avatar
john committed
42
    </target>
43

john's avatar
john committed
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
    <target name="jar">
        <copy tofile="${derby-jar}" flatten="true">
            <fileset dir="${lib-build-top}">
                <include name="jars/*/derby.jar"/>
            </fileset>
        </copy>
        <copy tofile="${derbyclient-jar}" flatten="true">
            <fileset dir="${lib-build-top}">
                <include name="jars/*/derbyclient.jar"/>
            </fileset>
        </copy>
        <copy tofile="${derbynet-jar}" flatten="true">
            <fileset dir="${lib-build-top}">
                <include name="jars/*/derbynet.jar"/>
            </fileset>
        </copy>
        <copy tofile="${derbytools-jar}" flatten="true">
            <fileset dir="${lib-build-top}">
                <include name="jars/*/derbytools.jar"/>
            </fileset>
        </copy>
        <copy tofile="${derbytesting-jar}" flatten="true">
            <fileset dir="${lib-build-top}">
                <include name="jars/*/derbyTesting.jar"/>
            </fileset>
        </copy>
    </target>
71
72

</project>