From: Ben Soares Date: Fri, 28 Jun 2019 09:33:18 +0000 (+0100) Subject: JAL-3322 corrected fix to convertBuildingMD task fail. removed debugging warnings... X-Git-Tag: Release_2_11_0~2^2~33 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=62812e655191cba3b3a5ee1fcdd22e952f960369;hp=91d8b8a3833e8504999dcba02533c451356439e3;p=jalview.git JAL-3322 corrected fix to convertBuildingMD task fail. removed debugging warnings from getdown config backups --- diff --git a/build.gradle b/build.gradle index 165c05e..1f16133 100644 --- a/build.gradle +++ b/build.gradle @@ -595,7 +595,7 @@ task convertBuildingMD(type: Exec) { } doFirst { - if (false && pandoc != null && file(pandoc).exists()) { + if (pandoc != null && file(pandoc).exists()) { commandLine pandoc, '-s', '-o', buildingHTML, '--metadata', 'pagetitle="Building Jalview from Source"', '--toc', '-H', css, buildingMD } else { println("Cannot find pandoc. Skipping convert building.md to HTML") diff --git a/getdown/lib/getdown-core.jar b/getdown/lib/getdown-core.jar index ff2d326..ea204c6 100644 Binary files a/getdown/lib/getdown-core.jar and b/getdown/lib/getdown-core.jar differ diff --git a/getdown/lib/getdown-launcher.jar b/getdown/lib/getdown-launcher.jar index 8d8a2b3..10072c9 100644 Binary files a/getdown/lib/getdown-launcher.jar and b/getdown/lib/getdown-launcher.jar differ diff --git a/getdown/src/getdown/ant/pom.xml b/getdown/src/getdown/ant/pom.xml index 22b9995..7f35d44 100644 --- a/getdown/src/getdown/ant/pom.xml +++ b/getdown/src/getdown/ant/pom.xml @@ -4,7 +4,7 @@ com.threerings.getdown getdown - 1.8.3-1.1_JVL + 1.8.3-1.1.2_JVL getdown-ant diff --git a/getdown/src/getdown/core/pom.xml b/getdown/src/getdown/core/pom.xml index 6fff245..2350118 100644 --- a/getdown/src/getdown/core/pom.xml +++ b/getdown/src/getdown/core/pom.xml @@ -4,7 +4,7 @@ com.threerings.getdown getdown - 1.8.3-1.1_JVL + 1.8.3-1.1.2_JVL getdown-core diff --git a/getdown/src/getdown/core/src/main/java/com/threerings/getdown/data/Application.java b/getdown/src/getdown/core/src/main/java/com/threerings/getdown/data/Application.java index 0ba2a5e..5c61378 100644 --- a/getdown/src/getdown/core/src/main/java/com/threerings/getdown/data/Application.java +++ b/getdown/src/getdown/core/src/main/java/com/threerings/getdown/data/Application.java @@ -282,16 +282,17 @@ public class Application * */ public Application (EnvConfig envc) { - _envc = envc; - _config = getLocalPath(envc.appDir, CONFIG_FILE); - _backupConfig = getLocalPath(new File(envc.appDir.getAbsolutePath()+File.separator+BACKUP_CONFIG_DIR), CONFIG_FILE); + _envc = envc; + _config = getLocalPath(envc.appDir, CONFIG_FILE); + _backupConfig = getLocalPath(envc.appDir, BACKUP_CONFIG_DIR+File.separator+CONFIG_FILE); + log.warning("Backup config file now", "_backupConfig", _backupConfig, "exists", _backupConfig.exists(), "isReadable", _backupConfig.canRead()); } /** * Returns the configured application directory. */ public File getAppDir () { - return _envc.appDir; + return _envc.appDir; } /** @@ -300,7 +301,7 @@ public class Application */ public boolean useCodeCache () { - return _useCodeCache; + return _useCodeCache; } /** @@ -309,7 +310,7 @@ public class Application */ public int getCodeCacheRetentionDays () { - return _codeCacheRetentionDays; + return _codeCacheRetentionDays; } /** @@ -317,7 +318,7 @@ public class Application * app files from its hosting server. */ public int maxConcurrentDownloads () { - return _maxConcDownloads; + return _maxConcDownloads; } /** @@ -326,21 +327,11 @@ public class Application public Resource getConfigResource () { Resource res = null; - try { - res = createResource(CONFIG_FILE, Resource.NORMAL); - } catch (Exception e) { - log.warning("Invalid appbase '" + _vappbase + "'.", e); - } - if (res == null) { - try { - String backupConfig = BACKUP_CONFIG_DIR + File.separator + CONFIG_FILE; - log.warning("Could not read config '"+CONFIG_FILE+"'. Attempting to use backup '"+backupConfig+"'"); - res = createResource(backupConfig, Resource.NORMAL); - } catch (Exception ex) { - throw new RuntimeException("Invalid appbase in backup config'" + _vappbase + "'.", ex); - } - } - return res; + try { + return createResource(CONFIG_FILE, Resource.NORMAL); + } catch (Exception e) { + log.warning("Invalid appbase '" + _vappbase + "'.", e); + } } /** @@ -348,7 +339,7 @@ public class Application */ public List getCodeResources () { - return _codes; + return _codes; } /** @@ -617,7 +608,8 @@ public class Application } if (config == null || config.getString("appbase") == null || config.getString("appbase").isEmpty()) { try { - config = Config.parseConfig(_backupConfig, opts); + Config backupConfig = Config.parseConfig(_backupConfig, opts); + config = backupConfig; log.warning("Using backup config file", "appdir", getAppDir(), "backupConfig", _backupConfig.getAbsoluteFile()); } catch (Exception e) { log.warning("Failure reading backup config file", "file", _backupConfig, e); diff --git a/getdown/src/getdown/launcher/pom.xml b/getdown/src/getdown/launcher/pom.xml index 1a35bee..b809235 100644 --- a/getdown/src/getdown/launcher/pom.xml +++ b/getdown/src/getdown/launcher/pom.xml @@ -4,7 +4,7 @@ com.threerings.getdown getdown - 1.8.3-1.1_JVL + 1.8.3-1.1.2_JVL getdown-launcher diff --git a/getdown/src/getdown/pom.xml b/getdown/src/getdown/pom.xml index f11f925..64555e0 100644 --- a/getdown/src/getdown/pom.xml +++ b/getdown/src/getdown/pom.xml @@ -10,7 +10,7 @@ com.threerings.getdown getdown pom - 1.8.3-1.1_JVL + 1.8.3-1.1.2_JVL getdown An application installer and updater. diff --git a/j11lib/getdown-core.jar b/j11lib/getdown-core.jar index ff2d326..ea204c6 100644 Binary files a/j11lib/getdown-core.jar and b/j11lib/getdown-core.jar differ diff --git a/j8lib/getdown-core.jar b/j8lib/getdown-core.jar index ff2d326..ea204c6 100644 Binary files a/j8lib/getdown-core.jar and b/j8lib/getdown-core.jar differ