From: Ben Soares Date: Wed, 30 Oct 2019 18:00:43 +0000 (+0000) Subject: JAL-3210 catch exception for eclipse X-Git-Tag: Release_2_11_4_0~45^2~18^2~85 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=0c67684aaee6951336e64a6afb564aed03790fda;p=jalview.git JAL-3210 catch exception for eclipse --- 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"