annotate build_jre21.xml @ 899:cccaeb65a5d6

Extend Makefile with target: jre21jars Note this requires that your OS has jdk21 installed and be the default jvm.
author Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
date Thu, 30 May 2024 13:08:03 +0200 (10 months ago)
parents
children 4c716a3030e3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
899
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
1 <?xml version="1.0"?><!-- vim:set ts=2 sw=2 expandtab: -->
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
2
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
3 <!--
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
4 SPDX-License-Identifier: MPL-2.0
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
5
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
6 This Source Code Form is subject to the terms of the Mozilla Public
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
7 License, v. 2.0. If a copy of the MPL was not distributed with this
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
8 file, You can obtain one at http://mozilla.org/MPL/2.0/.
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
9
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
10 Copyright 2024 MonetDB Foundation;
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
11 Copyright August 2008 - 2023 MonetDB B.V.;
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
12 Copyright 1997 - July 2008 CWI.
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
13 -->
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
14
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
15 <!--
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
16 Build file to allow ant (http://ant.apache.org/) to be used
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
17 to build the MonetDB Java packages, such as the JDBC driver.
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
18 -->
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
19
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
20 <project name="MonetDB_Java_Drivers" default="default" basedir=".">
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
21
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
22
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
23 <!-- set global properties for this build -->
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
24 <property name="srcdir" value="src/main/java" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
25 <property name="libdir" value="lib" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
26 <property name="jardir" value="jars" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
27 <property name="builddir" value="build" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
28 <property name="docdir" value="doc" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
29 <property name="jdbc-package" value="org/monetdb/jdbc" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
30 <property name="mcl-package" value="org/monetdb/mcl" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
31 <property name="client-package" value="org/monetdb/client" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
32 <property name="util-package" value="org/monetdb/util" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
33 <property name="mero-control-package" value="org/monetdb/merovingian" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
34
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
35 <property file="build.local.properties" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
36 <property file="build.properties" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
37
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
38 <!--
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
39 Update: cross-compile for JVM 8 (=1.8), profile compact2
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
40 2020-02-12, martin.van.dinther@monetdbsolutions.com
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
41
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
42 Update: cross-compile for JVM 17, profile compact2
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
43 2023-03-08, martin.van.dinther@monetdbsolutions.com
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
44
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
45 Update: cross-compile for JVM 21, profile compact2
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
46 2024-05-30, martin.van.dinther@monetdbsolutions.com
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
47 -->
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
48
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
49 <property name="jvm.version" value="21" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
50 <property name="jre.version" value="jre21" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
51 <property name="javac.flags" value="-source 8" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
52 <property name="javac.flags" value="-target 21" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
53 <property name="javac.flags" value="-profile compact2" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
54 <property name="javac.flags" value="-Xlint" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
55
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
56 <property name="jdbc-jar"
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
57 value="${jardir}/monetdb-jdbc-${JDBC_MAJOR}.${JDBC_MINOR}.${jre.version}.jar" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
58 <property name="jdbcclient-jar"
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
59 value="${jardir}/jdbcclient.${jre.version}.jar" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
60 <property name="jmonetdb-jar"
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
61 value="${jardir}/jmonetdb.${jre.version}.jar" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
62 <property name="mero-control-jar"
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
63 value="${jardir}/merocontrol.${jre.version}.jar" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
64
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
65 <!-- full target -->
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
66 <target name="all">
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
67 <antcall target="distjdbc" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
68 <antcall target="distmerocontrol" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
69 <antcall target="doc" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
70 </target>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
71
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
72 <target name="distall">
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
73 <antcall target="distjdbc" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
74 <antcall target="distmerocontrol" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
75 </target>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
76
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
77 <target name="default">
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
78 <antcall target="jar_jdbcclient" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
79 <antcall target="jar_jmonetdb" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
80 </target>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
81
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
82 <target name="distjdbc">
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
83 <antcall target="jar_jdbc" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
84 <antcall target="jar_jdbcclient" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
85 </target>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
86
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
87 <target name="distmerocontrol">
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
88 <antcall target="jar_mero_control" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
89 </target>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
90
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
91 <!-- jar targets -->
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
92 <target name="jar_jdbc" depends="compile_mcl,compile_jdbc"
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
93 unless="uptodate.jdbc-jar">
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
94 <echo file="${builddir}/META-INF/services/java.sql.Driver" append="false">org.monetdb.jdbc.MonetDriver</echo>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
95 <jar jarfile="${jdbc-jar}">
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
96 <fileset dir="${builddir}">
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
97 <include name="META-INF/services/java.sql.Driver" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
98 <include name="${jdbc-package}/**/*.class" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
99 <include name="${mcl-package}/**/*.class" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
100 <include name="${util-package}/FileTransferHandler.class" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
101 </fileset>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
102 </jar>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
103 </target>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
104
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
105 <target name="jar_client" depends="compile_util,compile_client">
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
106 <jar jarfile="${jardir}/monetdb-clients.jar">
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
107 <fileset dir="${builddir}">
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
108 <include name="${client-package}/**/*.class" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
109 <include name="${util-package}/**/*.class" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
110 </fileset>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
111 </jar>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
112 </target>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
113
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
114 <!-- a convenience jar of jdbcclient command line program plus JDBC driver -->
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
115 <target name="jar_jdbcclient"
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
116 depends="compile_mcl,compile_jdbc,compile_util,compile_client"
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
117 unless="uptodate.jdbcclient-jar">
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
118 <echo message="Building jdbcclient + JDBC driver convenience jar" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
119 <jar jarfile="${jdbcclient-jar}">
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
120 <fileset dir="${builddir}">
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
121 <include name="${client-package}/**/*.class" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
122 <include name="${util-package}/**/*.class" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
123 <include name="META-INF/services/java.sql.Driver" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
124 <include name="${jdbc-package}/**/*.class" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
125 <include name="${mcl-package}/**/*.class" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
126 </fileset>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
127 <manifest>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
128 <attribute name="Built-By" value="${user.name}" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
129 <attribute name="Main-Class" value="org.monetdb.client.JdbcClient" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
130 </manifest>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
131 </jar>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
132 </target>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
133
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
134 <!-- a convenience jar of MeroControl plus the JMonetDB utility -->
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
135 <target name="jar_jmonetdb"
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
136 depends="compile_mcl,compile_util,compile_mero_control,compile_client"
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
137 unless="uptodate.jmonetdb-jar">
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
138 <echo message="Building MeroControl + JmonetDB convenience jar" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
139 <jar jarfile="${jmonetdb-jar}">
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
140 <fileset dir="${builddir}">
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
141 <include name="${mero-control-package}/**/*.class" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
142 <include name="${mcl-package}/**/*.class" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
143 <include name="${client-package}/JMonetDB.class" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
144 <include name="${util-package}/**/*.class" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
145 </fileset>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
146 <manifest>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
147 <attribute name="Built-By" value="${user.name}" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
148 <attribute name="Main-Class" value="org.monetdb.client.JMonetDB" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
149 </manifest>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
150 </jar>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
151 </target>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
152
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
153 <target name="jar_mero_control"
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
154 depends="compile_mcl,compile_mero_control">
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
155 <jar jarfile="${mero-control-jar}">
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
156 <fileset dir="${builddir}">
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
157 <include name="${mero-control-package}/**/*.class" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
158 </fileset>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
159 <manifest>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
160 <attribute name="Built-By" value="${user.name}" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
161 </manifest>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
162 </jar>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
163 </target>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
164
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
165 <!-- compile targets -->
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
166 <target name="compile_jdbc" depends="prepare,driver">
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
167 <echo message="Compiling JDBC driver" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
168 <javac
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
169 classpath="${srcdir}"
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
170 destdir="${builddir}"
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
171 debug="${debug}"
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
172 optimize="${optimize}"
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
173 includeantruntime="false"
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
174 source="${jvm.version}"
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
175 target="${jvm.version}"
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
176 >
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
177 <src path="${srcdir}" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
178 <include name="${jdbc-package}/**/*.java" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
179 <include name="${util-package}/FileTransferHandler.java" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
180 <compilerarg line="${javac.flags}" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
181 </javac>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
182 </target>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
183
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
184 <target name="compile_mcl" depends="prepare">
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
185 <echo message="Compiling MCL" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
186 <javac
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
187 classpath="${srcdir}"
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
188 srcdir="${srcdir}"
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
189 destdir="${builddir}"
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
190 debug="${debug}"
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
191 optimize="${optimize}"
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
192 includeantruntime="false"
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
193 source="${jvm.version}"
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
194 target="${jvm.version}"
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
195 >
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
196 <include name="${mcl-package}/**/*.java" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
197 <compilerarg line="${javac.flags}" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
198 </javac>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
199 </target>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
200
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
201 <target name="compile_client" depends="prepare">
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
202 <echo message="Compiling Clients" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
203 <javac
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
204 classpath="${srcdir}"
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
205 srcdir="${srcdir}"
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
206 destdir="${builddir}"
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
207 debug="${debug}"
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
208 optimize="${optimize}"
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
209 includeantruntime="false"
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
210 source="${jvm.version}"
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
211 target="${jvm.version}"
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
212 >
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
213 <include name="${client-package}/**/*.java" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
214 <compilerarg line="${javac.flags}" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
215 </javac>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
216 </target>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
217
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
218 <target name="compile_util" depends="prepare">
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
219 <echo message="Compiling Utilities" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
220 <javac
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
221 classpath="${srcdir}"
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
222 srcdir="${srcdir}"
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
223 destdir="${builddir}"
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
224 debug="${debug}"
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
225 optimize="${optimize}"
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
226 includeantruntime="false"
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
227 source="${jvm.version}"
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
228 target="${jvm.version}"
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
229 >
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
230 <include name="${util-package}/**/*.java" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
231 <compilerarg line="${javac.flags}" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
232 </javac>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
233 </target>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
234
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
235 <target name="compile_mero_control" depends="prepare">
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
236 <echo message="Compiling Merovingian Control library" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
237 <javac
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
238 classpath="${srcdir}"
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
239 srcdir="${srcdir}"
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
240 destdir="${builddir}"
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
241 debug="${debug}"
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
242 optimize="${optimize}"
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
243 includeantruntime="false"
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
244 source="${jvm.version}"
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
245 target="${jvm.version}"
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
246 >
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
247 <include name="${mero-control-package}/**/*.java" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
248 <compilerarg line="${javac.flags}" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
249 </javac>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
250 </target>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
251
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
252 <!--
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
253 This generates MonetVersion.java from its ".java.in" equivalent.
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
254 It's required for importing the driver version properties.
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
255 -->
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
256 <target name="driver" depends="prepare" unless="uptodate.drivers">
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
257 <tstamp>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
258 <format property="TODAY" pattern="yyyyMMdd" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
259 </tstamp>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
260
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
261 <!-- Some defaults -->
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
262 <filter token="JDBC_MAJOR" value="${JDBC_MAJOR}" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
263 <filter token="JDBC_MINOR" value="${JDBC_MINOR}" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
264 <filter token="JDBC_VER_SUFFIX" value="${JDBC_VER_SUFFIX} ${TODAY}" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
265
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
266 <fail unless="JDBC_MAJOR" message="'JDBC_MAJOR' undefined. Please follow the directions in build.properties."/>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
267 <fail unless="JDBC_MINOR" message="'JDBC_MINOR' undefined. Please follow the directions in build.properties."/>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
268 <fail unless="JDBC_VER_SUFFIX" message="'JDBC_VER_SUFFIX' undefined. Please follow the directions in build.properties."/>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
269
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
270 <!-- now copy and filter the file -->
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
271 <copy file="${srcdir}/${jdbc-package}/MonetVersion.java.in"
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
272 overwrite="true"
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
273 tofile="${srcdir}/${jdbc-package}/MonetVersion.java"
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
274 filtering="yes" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
275
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
276 <echo message="Configured build for the ${JDBC_MAJOR}.${JDBC_MINOR} (${JDBC_VER_SUFFIX}) edition driver" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
277 </target>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
278
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
279 <!-- Prepares the build directory and sets some variables -->
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
280 <!-- checks whether regeneration of files is necessary -->
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
281 <target name="prepare">
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
282 <condition property="debug" value="true">
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
283 <equals arg1="${enable_debug}" arg2="true" casesensitive="false" trim="true" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
284 </condition>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
285 <condition property="debug" value="false">
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
286 <not>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
287 <equals arg1="${enable_debug}" arg2="true" casesensitive="false" trim="true" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
288 </not>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
289 </condition>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
290 <condition property="optimize" value="true">
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
291 <equals arg1="${enable_optimize}" arg2="true" casesensitive="false" trim="true" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
292 </condition>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
293 <condition property="optimize" value="false">
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
294 <not>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
295 <equals arg1="${enable_optimize}" arg2="true" casesensitive="false" trim="true" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
296 </not>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
297 </condition>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
298
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
299 <uptodate targetfile="${jdbc-jar}" property="uptodate.jdbc-jar">
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
300 <srcfiles dir="${srcdir}">
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
301 <include name="${jdbc-package}/**/*.java" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
302 <include name="${mcl-package}/**/*.java" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
303 </srcfiles>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
304 </uptodate>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
305 <uptodate targetfile="${jdbcclient-jar}" property="uptodate.jdbcclient-jar">
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
306 <srcfiles dir="${srcdir}">
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
307 <include name="${client-package}/**/*.java" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
308 <include name="${jdbc-package}/**/*.java" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
309 <include name="${mcl-package}/**/*.java" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
310 </srcfiles>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
311 </uptodate>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
312 <uptodate targetfile="${jmonetdb-jar}" property="uptodate.jmonetdb-jar">
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
313 <srcfiles dir="${srcdir}">
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
314 <include name="${client-package}/**/*.java" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
315 <include name="${mero-control-package}/**/*.java" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
316 <include name="${mcl-package}/**/*.java" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
317 </srcfiles>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
318 </uptodate>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
319 <condition property="uptodate.drivers">
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
320 <and>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
321 <uptodate targetfile="${builddir}/src/${jdbc-package}/MonetVersion.java">
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
322 <srcfiles dir="${srcdir}">
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
323 <include name="build.properties" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
324 <include name="build.local.properties" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
325 <include name="${jdbc-package}/MonetVersion.java.in" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
326 <include name="${jdbc-package}/**/*.java" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
327 </srcfiles>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
328 </uptodate>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
329 </and>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
330 </condition>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
331
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
332 <mkdir dir="${builddir}" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
333 <mkdir dir="${jardir}" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
334 <echo message="Debug is ${debug}, optimise is ${optimize}" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
335 </target>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
336
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
337 <!-- This target removes the build, jar and doc directories -->
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
338 <target name="clean">
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
339 <delete quiet="true" dir="${builddir}" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
340 <delete quiet="true" dir="${jardir}" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
341 <delete quiet="true" dir="${docdir}" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
342 </target>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
343
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
344
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
345 <!-- documentation target -->
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
346 <target name="doc"
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
347 depends="driver">
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
348 <javadoc
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
349 destdir="${docdir}"
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
350 author="false"
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
351 version="false"
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
352 use="true"
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
353 windowtitle="MonetDB Java APIs">
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
354
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
355 <fileset dir="${srcdir}" defaultexcludes="yes">
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
356 <include name="${jdbc-package}/**/*.java" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
357 <include name="${mcl-package}/**/*.java" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
358 <include name="${client-package}/**/*.java" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
359 <include name="${util-package}/**/*.java" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
360 <include name="${mero-control-package}/**/*.java" />
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
361 </fileset>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
362 </javadoc>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
363 </target>
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
364
cccaeb65a5d6 Extend Makefile with target: jre21jars
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
diff changeset
365 </project>