From 1315cf9c366b9860e9e523993e19b21f69b5306c Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Sat, 10 Feb 2024 14:14:02 +0900 Subject: [PATCH] Pick up jdk version from environment ... instead of hard-coding the version in ant build file. Change-Id: I382803ee7c557e02fc02bda53f140b46aa0f2146 --- install_libs.sh | 4 +++- src/java/SBus/build.xml | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/install_libs.sh b/install_libs.sh index 4467093c..389ab93e 100755 --- a/install_libs.sh +++ b/install_libs.sh @@ -6,10 +6,12 @@ # so you may need root privilege to execute this script set -x +STORLETS_JDK_VERSION=${STORLETS_JDK_VERSION:-11} + # install c library cd src/c/sbus make && make install cd - # Install java library -ant install +STORLETS_JDK_VERSION=${STORLETS_JDK_VERSION} ant install diff --git a/src/java/SBus/build.xml b/src/java/SBus/build.xml index 4e75afbb..b6423163 100644 --- a/src/java/SBus/build.xml +++ b/src/java/SBus/build.xml @@ -16,6 +16,8 @@ + + @@ -37,8 +39,8 @@ - - + +