JAL-4454 make sure 2.11.4.0-test is stripped - *for reals*
authorJim Procter <jprocter@dundee.ac.uk>
Thu, 12 Sep 2024 10:04:37 +0000 (11:04 +0100)
committerJim Procter <jprocter@dundee.ac.uk>
Thu, 12 Sep 2024 10:04:37 +0000 (11:04 +0100)
build.gradle

index cf9cd86..1cd0565 100644 (file)
@@ -1328,10 +1328,10 @@ def setReleaseAndWhatsNew(File whatsnewMdFile, File releaseMdFile) {
     if (CHANNEL != "RELEASE")
     {
       var nearestVersion = "${JALVIEW_VERSION_UNDERSCORES}"
-      print "Stripping rc/test/etc for ${nearestVersion}"
-      nearestVersion = nearestVersion.replaceAll(~/-?(d|rc|test|develop|dev).+/,"")
+      println "Stripping rc/test/etc for ${nearestVersion}"
+      nearestVersion = nearestVersion.replaceAll(~/-?(d|rc|test|develop|dev).*/,"")
       var nearestMd = file("${jalviewDir}/${whatsnew_dir}/whatsnew-${nearestVersion}.md")
-      print "Looking in ${nearestMd}"
+      println "Looking in ${nearestMd}"
       if (nearestMd.exists()) {
         whatsnewMdFile = nearestMd
         releaseMdFile = file("${jalviewDir}/${releases_dir}/release-${nearestVersion}.md")