From ffb66d0affda6d559f5f2673cb6de886b949435c Mon Sep 17 00:00:00 2001 From: Filipe Silva Date: Mon, 26 Nov 2018 23:54:57 +0000 Subject: [PATCH] WL#12298, Connectors: Expose metadata about source and binaries in unified way. --- CHANGES | 2 + build.xml | 278 +++++++++++++++++++++---------- src/build/misc/debian.in/install | 2 + src/build/misc/rpm.spec.in | 4 +- 4 files changed, 195 insertions(+), 91 deletions(-) diff --git a/CHANGES b/CHANGES index 930e89e22..3766e70e7 100644 --- a/CHANGES +++ b/CHANGES @@ -3,6 +3,8 @@ Version 8.0.14 + - WL#12298, Connectors: Expose metadata about source and binaries in unified way. + - Fix for Bug#93111 (28894344), ConnectionUrl.java contains char U+00A7 (section sign). - WL#12621, DevAPI: Handling of Default Schema. diff --git a/build.xml b/build.xml index 63e5f147f..3c0439c4e 100644 --- a/build.xml +++ b/build.xml @@ -146,7 +146,6 @@ com.mysql.cj.build.driver.fullName - full product name (includes version): [${co com.mysql.cj.build.dir - root directory for driver build: [${com.mysql.cj.build.dir}] com.mysql.cj.build.dir.driver - driver build dir: [${com.mysql.cj.build.dir}/${com.mysql.cj.build.driver.fullName}] -com.mysql.cj.build.dir.maven - directory for preparing Maven packages: [${com.mysql.cj.build.dir}/maven-bundle-<random_number>] com.mysql.cj.dist.packageName - final package name: [${com.mysql.cj.build.driver.extendedName}[${com.mysql.cj.dist.packageWithSourcesSuffix}|${com.mysql.cj.dist.packageNoSourcesSuffix}|_none_]-${com.mysql.cj.build.driver.version.full}] com.mysql.cj.dist.packageSuffix - suffix added to package name (depends on package type): [${com.mysql.cj.dist.packageWithSourcesSuffix}|${com.mysql.cj.dist.packageNoSourcesSuffix}|_unset_] @@ -159,6 +158,7 @@ com.mysql.cj.dist.licenseUrl - license book location: [${com.mysql.cj.dist.licen com.mysql.cj.dist.dir - root directory for driver packaging: [${com.mysql.cj.dist.dir}] com.mysql.cj.dist.dir.prepare - directory for preparing packages: [${com.mysql.cj.dist.dir.prepare}] com.mysql.cj.dist.dir.package - directory for preparing packages for given package name: [${com.mysql.cj.dist.dir.prepare}/${com.mysql.cj.build.driver.extendedName}[${com.mysql.cj.dist.packageWithSourcesSuffix}|${com.mysql.cj.dist.packageNoSourcesSuffix}|_none_]-${com.mysql.cj.build.driver.version.full}] +com.mysql.cj.dist.dir.maven - directory for preparing Maven packages: [${com.mysql.cj.dist.dir.prepare}/maven-bundle-<random_number>] com.mysql.cj.dist.dir.prebuilt.docs - where to take prebuilt documentation files for adding them to packages: [${com.mysql.cj.dist.dir.prebuilt.docs}] com.mysql.cj.dist.deb.maintainerEmail - the deb package maintainer email: [${com.mysql.cj.dist.deb.maintainerEmail}] @@ -353,7 +353,7 @@ See also com.mysql.cj.conf.PropertyDefinitions.SYSP_* variables for other test o outputproperty="com.mysql.cj.build.jdk.version" failonerror="false" failifexecutionfails="false" - resultproperty="com.mysql.cj.build.jdk.exitstatus"> + resultproperty="com.mysql.cj.build.jdk.exitStatus"> @@ -361,12 +361,19 @@ See also com.mysql.cj.conf.PropertyDefinitions.SYSP_* variables for other test o - + + + + + @@ -379,14 +386,14 @@ See also com.mysql.cj.conf.PropertyDefinitions.SYSP_* variables for other test o outputproperty="com.mysql.cj.testsuite.jvm.version" failonerror="false" failifexecutionfails="false" - resultproperty="com.mysql.cj.testsuite.jvm.exitstatus"> + resultproperty="com.mysql.cj.testsuite.jvm.exitStatus"> - + @@ -410,68 +417,131 @@ See also com.mysql.cj.conf.PropertyDefinitions.SYSP_* variables for other test o classpathref="project.build.classpath" /> - - - - - - - - - - - + + + + resultproperty="com.mysql.cj.build.git.branchExitStatus"> + + + + + + + + + + + + + + + + + resultproperty="com.mysql.cj.build.git.commitExitStatus"> + + + - - + + + + + + + + + + + + + + + + + + + + + - + - + - + - + - - + + - - - - + + + + @@ -480,7 +550,7 @@ See also com.mysql.cj.conf.PropertyDefinitions.SYSP_* variables for other test o - + @@ -491,8 +561,8 @@ See also com.mysql.cj.conf.PropertyDefinitions.SYSP_* variables for other test o - - + + @@ -533,8 +603,6 @@ See also com.mysql.cj.conf.PropertyDefinitions.SYSP_* variables for other test o - - @@ -620,7 +688,7 @@ See also com.mysql.cj.conf.PropertyDefinitions.SYSP_* variables for other test o - + @@ -630,32 +698,34 @@ See also com.mysql.cj.conf.PropertyDefinitions.SYSP_* variables for other test o - + - + - + - + + description="Builds driver, binary .jar file and documentation, basically a distribution 'image'." + depends="real-clean, dist, -bundle-documentation" /> - - + + @@ -716,7 +786,7 @@ See also com.mysql.cj.conf.PropertyDefinitions.SYSP_* variables for other test o - + @@ -742,20 +812,41 @@ See also com.mysql.cj.conf.PropertyDefinitions.SYSP_* variables for other test o - + + + + + + + + + build-date: ${com.mysql.cj.build.time}${line.separator} + os-info: ${os.name} ${os.arch} ${os.version}${line.separator} + compiler: ${com.mysql.cj.dist.jdk.compilerVersion}${line.separator} + build-tool: ${ant.version}${line.separator} + + + version: ${com.mysql.cj.build.driver.version.full}${line.separator} + branch: ${com.mysql.cj.build.git.branch}${line.separator} + date: ${com.mysql.cj.build.git.date}${line.separator} + commit: ${com.mysql.cj.build.git.commit}${line.separator} + short: ${com.mysql.cj.build.git.short}${line.separator} + + + @@ -763,14 +854,14 @@ See also com.mysql.cj.conf.PropertyDefinitions.SYSP_* variables for other test o + + - - @@ -781,7 +872,7 @@ See also com.mysql.cj.conf.PropertyDefinitions.SYSP_* variables for other test o - + @@ -832,61 +923,66 @@ See also com.mysql.cj.conf.PropertyDefinitions.SYSP_* variables for other test o - + - - - - + + + + - - - + + + + + + + + + + + - - - + + + - - - - + + + - - - + + + - + - - - + @@ -904,8 +1000,8 @@ See also com.mysql.cj.conf.PropertyDefinitions.SYSP_* variables for other test o - - + + - @@ -1371,9 +1466,12 @@ See also com.mysql.cj.conf.PropertyDefinitions.SYSP_* variables for other test o - + + + + @@ -1389,7 +1487,7 @@ See also com.mysql.cj.conf.PropertyDefinitions.SYSP_* variables for other test o - + @@ -1431,7 +1529,7 @@ See also com.mysql.cj.conf.PropertyDefinitions.SYSP_* variables for other test o - + @@ -1481,7 +1579,7 @@ See also com.mysql.cj.conf.PropertyDefinitions.SYSP_* variables for other test o - + diff --git a/src/build/misc/debian.in/install b/src/build/misc/debian.in/install index 1ef6b81c7..977c8a5e1 100644 --- a/src/build/misc/debian.in/install +++ b/src/build/misc/debian.in/install @@ -4,3 +4,5 @@ dist/toArchive/@PACKAGE_NAME@/@PRODUCT_NAME@@PRODUCT_SUFFIX@-@VERSION_FULL@.jar dist/toArchive/@PACKAGE_NAME@/@LIC_FILE@ usr/share/doc/@PRODUCT_NAME@@PRODUCT_SUFFIX@ dist/toArchive/@PACKAGE_NAME@/README usr/share/doc/@PRODUCT_NAME@@PRODUCT_SUFFIX@ dist/toArchive/@PACKAGE_NAME@/CHANGES usr/share/doc/@PRODUCT_NAME@@PRODUCT_SUFFIX@ +dist/toArchive/@PACKAGE_NAME@/INFO_SRC usr/share/doc/@PRODUCT_NAME@@PRODUCT_SUFFIX@ +dist/toArchive/@PACKAGE_NAME@/INFO_BIN usr/share/doc/@PRODUCT_NAME@@PRODUCT_SUFFIX@ diff --git a/src/build/misc/rpm.spec.in b/src/build/misc/rpm.spec.in index a93b8ef8b..aa3d07278 100644 --- a/src/build/misc/rpm.spec.in +++ b/src/build/misc/rpm.spec.in @@ -152,7 +152,7 @@ ${ANT_CMD} \ # We use the 'full-package-no-sources' as there are changes done only # when creating a package, 'dist' is not enough. To make it a bit easier # in the install step, we rename the directory with the content -mv dist/toArchive/@MYSQL_CJ_PROD_NAME@* package-content +mv dist/toArchive/@PACKAGE_NAME@ package-content # The 'package' target doesn't copy the HTML or PDF doc like 'dist', # we copy it here @@ -176,6 +176,8 @@ rm -rf %{buildroot} # EL6 doesn't like 'license' macro here, so we use 'doc' %doc package-content/LICENSE %doc package-content/README +%doc package-content/INFO_BIN +%doc package-content/INFO_SRC %if 0%{?with_docs:1} # README.txt is a rename of "connector-j.txt"