X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=build.gradle;h=c09a61ee9049009a1204af46c146b908263a6be1;hb=76b1f84db2be8f49de043a5d3f2c232aba33e37f;hp=17407a9b3cc1ba69c7e03fa93dc25c44a880c36f;hpb=02dcdd0868477a2d6755bef1af439667b5bfdba7;p=jalview.git 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 {