From 76b1f84db2be8f49de043a5d3f2c232aba33e37f Mon Sep 17 00:00:00 2001 From: Ben Soares Date: Tue, 16 Nov 2021 16:55:29 +0000 Subject: [PATCH] JAL-3553 improve the labels in install4j's output.txt and make a versioned filename output-JALVIEW_VERSION.txt --- build.gradle | 23 +++++++++++++++++++++-- utils/install4j/install4j8_template.install4j | 10 +++++----- 2 files changed, 26 insertions(+), 7 deletions(-) diff --git a/build.gradle b/build.gradle index 17407a9..c09a61e 100644 --- a/build.gradle +++ b/build.gradle @@ -1867,8 +1867,7 @@ clean { } } - -task installers(type: com.install4j.gradle.Install4jTask) { +task installerFiles(type: com.install4j.gradle.Install4jTask) { group = "distribution" description = "Create the install4j installers" dependsOn getdown @@ -1981,6 +1980,26 @@ task installers(type: com.install4j.gradle.Install4jTask) { outputs.dir("${jalviewDir}/${install4j_build_dir}/${JAVA_VERSION}") } +task copyInstallersOutputTxt { + dependsOn installerFiles + + def install4jBuildDir = "${jalviewDir}/${install4j_build_dir}/${JAVA_VERSION}" + def installersOutputTxt = "${install4jBuildDir}/output.txt" + def installersOutputVersionTxt = "${install4jBuildDir}/output-${JALVIEW_VERSION}.txt" + + inputs.file(installersOutputTxt) + outputs.file("${install4jBuildDir}/${installersOutputVersionTxt}") + + doFirst { + file(installersOutputVersionTxt).write(file(installersOutputTxt).text) + } +} + +task installers { + dependsOn installerFiles + dependsOn copyInstallersOutputTxt +} + spotless { java { diff --git a/utils/install4j/install4j8_template.install4j b/utils/install4j/install4j8_template.install4j index a14900c..21d6d1a 100644 --- a/utils/install4j/install4j8_template.install4j +++ b/utils/install4j/install4j8_template.install4j @@ -1255,7 +1255,7 @@ return console.askYesNo(message, true); - + @@ -1271,7 +1271,7 @@ return console.askYesNo(message, true); - + @@ -1291,7 +1291,7 @@ return console.askYesNo(message, true); - + @@ -1307,7 +1307,7 @@ return console.askYesNo(message, true); - + @@ -1323,7 +1323,7 @@ return console.askYesNo(message, true); - + -- 1.7.10.2