From f6131ae7c9734cfcba48a29a9e34da12e54a8532 Mon Sep 17 00:00:00 2001 From: Ben Soares Date: Mon, 17 Feb 2020 16:47:16 +0000 Subject: [PATCH] JAL-3289 Added option and documentation for a TEST-LOCAL channel to test OTA updates using local filesystem --- build.gradle | 9 +++++++++ doc/building.md | 5 +++++ 2 files changed, 14 insertions(+) diff --git a/build.gradle b/build.gradle index aeb62b6..05fddc0 100644 --- a/build.gradle +++ b/build.gradle @@ -184,6 +184,15 @@ ext { reportRsyncCommand = true break + case "TEST-LOCAL": + if (!file("${LOCALDIR}").exists()) { + throw new GradleException("Must provide a LOCALDIR value to produce a local distribution") + } else { + getdownAppBase = file(file("${LOCALDIR}").getAbsolutePath()).toURI().toString() + getdownLauncher = string("${jalviewDir}/${getdown_lib_dir}/${getdown_launcher_local}") + } + break + case "LOCAL": getdownAppBase = file(getdownWebsiteDir).toURI().toString() getdownLauncher = string("${jalviewDir}/${getdown_lib_dir}/${getdown_launcher_local}") diff --git a/doc/building.md b/doc/building.md index c2d40a4..fbc4cca 100644 --- a/doc/building.md +++ b/doc/building.md @@ -486,6 +486,11 @@ There are several values of `CHANNEL` that can be chosen, with a default of `LOC - `appbase` as `http://www.jalview.org/getdown/SCRATCH-NAME/JAVA_VERSION` - application subdir as `alt` - Getdown launcher cannot use a `file://` scheme appbase. +* `TEST-LOCAL`: Like `SCRATCH` but with a specific `test-local` channel name and a local filesystem appbase. This is meant for testing an over-the-air update on the local filesystem. An extra property `LOCALDIR` must be given (e.g. `-PLOCALDIR=/home/user/tmp/test`) + It will set + - `appbase` as `file://${LOCALDIR}` + - application subdir as `alt` + - Getdown launcher can use a `file://` scheme appbase. * `TEST-RELEASE`: Like `SCRATCH` but with a specific `test-release` channel name. This won't become live until the actual getdown artefact is synced to the web server. This is meant for testing an over-the-air update without interfering with the live `release` or `develop` channels. It will set - `appbase` as `http://www.jalview.org/getdown/test-release/JAVA_VERSION` -- 1.7.10.2