From: Ben Soares Date: Fri, 20 Sep 2024 15:42:53 +0000 (+0100) Subject: JAL-4467 Take account of presource and xresource in the getdownArchiveBuild task X-Git-Tag: Release_2_11_4_1^2~1^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fbug%2FJAL-4467_getdownArchive_task_fails;p=jalview.git JAL-4467 Take account of presource and xresource in the getdownArchiveBuild task --- diff --git a/build.gradle b/build.gradle index 1cd0565..4a7c921 100644 --- a/build.gradle +++ b/build.gradle @@ -2667,13 +2667,13 @@ task getdownArchiveBuild() { getdownTextLines.each { line -> line = line.replaceAll("^(?appbase\\s*=\\s*).*", '${s}'+getdownFullArchiveAppBase) - line = line.replaceAll("^(?(resource|code)\\s*=\\s*)${getdownAppDistDir}/", '${s}'+vAltDir+"/") + line = line.replaceAll("^(?([px]?resource|code)\\s*=\\s*)${getdownAppDistDir}/", '${s}'+vAltDir+"/") line = line.replaceAll("^(?ui.background_image\\s*=\\s*).*\\.png", '${s}'+"${getdown_resource_dir}/jalview_archive_getdown_background.png") line = line.replaceAll("^(?ui.instant_background_image\\s*=\\s*).*\\.png", '${s}'+"${getdown_resource_dir}/jalview_archive_getdown_background_initialising.png") line = line.replaceAll("^(?ui.error_background\\s*=\\s*).*\\.png", '${s}'+"${getdown_resource_dir}/jalview_archive_getdown_background_error.png") line = line.replaceAll("^(?ui.progress_image\\s*=\\s*).*\\.png", '${s}'+"${getdown_resource_dir}/jalview_archive_getdown_progress_bar.png") // remove the existing resource = resource/ or bin/ lines - if (! line.matches("resource\\s*=\\s*(resource|bin)/.*")) { + if (! line.matches("[px]?resource\\s*=\\s*(resource|bin)/.*")) { getdownArchiveTextLines += line } } @@ -2683,7 +2683,7 @@ task getdownArchiveBuild() { from "${archiveImagesDir}" into "${getdownFullArchiveDir}/${getdown_resource_dir}" eachFile { file -> - getdownArchiveTextLines += "resource = ${getdown_resource_dir}/${file.getName()}" + getdownArchiveTextLines += "presource = ${getdown_resource_dir}/${file.getName()}" } }