From 0c67684aaee6951336e64a6afb564aed03790fda Mon Sep 17 00:00:00 2001 From: Ben Soares Date: Wed, 30 Oct 2019 18:00:43 +0000 Subject: [PATCH] JAL-3210 catch exception for eclipse --- build.gradle | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/build.gradle b/build.gradle index d45afa4..51f95ac 100644 --- a/build.gradle +++ b/build.gradle @@ -22,17 +22,20 @@ plugins { // local build environment properties def localProps = "${jalviewDir}/local.properties" if (file(localProps).exists()) { - 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}'") - } + 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) { } } @@ -1471,7 +1474,11 @@ task jalviewjsUnzipFiles { } task jalviewjsCreateJ2sSettings(type: WriteProperties) { + group "JalviewJS" + description "Create the .j2s file from the j2s.* properties" + dependsOn jalviewjsSitePath + outputFile ("${jalviewDir}/${jalviewjs_j2s_settings}") def j2s_props = project.properties.findAll { it.key.startsWith("j2s.") }.sort { it.key } def siteDirProperty = "j2s.site.directory" -- 1.7.10.2