JAL-3280 Pass appbase and appdir from getdown to jalvew. Check appbase (defaults...
[jalview.git] / build.gradle
index 682b5c2..66b5550 100644 (file)
@@ -1365,6 +1365,8 @@ task getdownWebsite() {
     //getdownTextString += "class = " + file(getdownLauncher).getName() + "\n"
     getdownTextString += "resource = ${getdown_launcher_new}\n"
     getdownTextString += "class = ${main_class}\n"
+    getdownTextString += "jvmarg = -Dgetdowndistdir=${getdownAppDistDir}\n"
+    getdownTextString += "jvmarg = -Dgetdownappbase=${getdownAppBase}\n"
 
     def getdown_txt = file("${getdownWebsiteDir}/getdown.txt")
     getdown_txt.write(getdownTextString)
@@ -1391,7 +1393,7 @@ task getdownWebsite() {
       copy {
         from getdown_txt
         from getdownLauncher
-        from "${getdownWebsiteDir}/${getdown_build_properties}"
+        from "${getdownAppDir}/${getdown_build_properties}"
         if (file(getdownLauncher).getName() != getdown_launcher) {
           rename(file(getdownLauncher).getName(), getdown_launcher)
         }