JAL-3321 Corrected the badly configured getdown-launcher.jar for updating and updated...
[jalview.git] / build.gradle
index 71eb491..af9a26f 100644 (file)
@@ -807,7 +807,7 @@ task getdownWebsite() {
 
     // getdown-launcher.jar should not be in main application class path so the main application can move it when updated.  Listed as a resource so it gets updated.
     //getdownTextString += "class = " + file(getdownLauncher).getName() + "\n"
-    getdownTextString += "resource = " + file(getdownLauncher).getName() + "\n"
+    getdownTextString += "resource = " + getdown_launcher_new + "\n"
     getdownTextString += "class = " + mainClass + "\n"
 
     def getdown_txt = file(project.ext.getdownWebsiteDir + "/getdown.txt")
@@ -819,6 +819,13 @@ task getdownWebsite() {
     }
 
     copy {
+      from project.ext.getdownWebsiteDir
+      into project.ext.getdownWebsiteDir
+      include(file(getdownLauncher).getName())
+      rename(file(getdownLauncher).getName(), getdown_launcher_new)
+    }
+
+    copy {
       from getdownLauncher
       into project.ext.getdownFilesDir
     }