JAL-3477 Added appbase override option at buildtime for testing in general, but speci...
authorBen Soares <bsoares@dundee.ac.uk>
Tue, 7 Jan 2020 10:57:39 +0000 (10:57 +0000)
committerBen Soares <bsoares@dundee.ac.uk>
Tue, 7 Jan 2020 10:57:39 +0000 (10:57 +0000)
build.gradle

index 87a5c69..1e26bee 100644 (file)
@@ -208,11 +208,16 @@ ext {
     break
 
     default: // something wrong specified
-    print("CHANNEL must be one of BUILD, RELEASE, ARCHIVE, DEVELOP, TEST-RELEASE, SCRATCH-..., LOCAL [default]")
+    println("CHANNEL must be one of BUILD, RELEASE, ARCHIVE, DEVELOP, TEST-RELEASE, SCRATCH-..., LOCAL [default]")
     exit
     break
 
   }
+  // override getdown_app_base if requested
+  if (getProperty("getdown_appbase_override") != null) {
+    getdown_app_base = string(getProperty("getdown_appbase_override"))
+    println("Overriding getdown appbase with '${getdown_app_base}'")
+  }
 
   getdownAppDir = string("${getdownWebsiteDir}/${getdown_app_dir}")
   //getdownJ11libDir = "${getdownWebsiteDir}/${getdown_j11lib_dir}"