From 2f0f4a60825f566eb793cba837144e2de767a9a6 Mon Sep 17 00:00:00 2001 From: Ben Soares Date: Mon, 11 Nov 2019 00:58:33 +0000 Subject: [PATCH] JAL-3210 Moved local.properties override into ext, now picked up in Eclipse IDE --- build.gradle | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/build.gradle b/build.gradle index 9798062..d32a6b2 100644 --- a/build.gradle +++ b/build.gradle @@ -19,27 +19,6 @@ plugins { id 'com.install4j.gradle' version '7.0.9' } -// local build environment properties -def localProps = "${jalviewDir}/local.properties" -if (file(localProps).exists()) { - try { - def p = new Properties() - def localPropsFIS = new FileInputStream(localProps) - p.load(localPropsFIS) - localPropsFIS.close() - p.each { - key, val -> - def over = getProperty(key) != null - setProperty(key, val) - if (over) { - println("Overriding property '${key}' with local.properties value '${val}'") - } - } - } catch (Exception e) { - System.out.println("Exception reading local.properties") - } -} - repositories { jcenter() mavenCentral() @@ -74,6 +53,27 @@ def compile_source_compatibility def compile_target_compatibility ext { + // local build environment properties + def localProps = "${jalviewDirAbsolutePath}/local.properties" + if (file(localProps).exists()) { + try { + def p = new Properties() + def localPropsFIS = new FileInputStream(localProps) + p.load(localPropsFIS) + localPropsFIS.close() + p.each { + key, val -> + def over = getProperty(key) != null + setProperty(key, val) + if (over) { + println("Overriding property '${key}' with local.properties value '${val}'") + } + } + } catch (Exception e) { + System.out.println("Exception reading local.properties") + } + } + getdownWebsiteDir = "${jalviewDir}/${getdown_website_dir}/${JAVA_VERSION}" getdownDir = "" reportRsyncCmd = false -- 1.7.10.2