+ dependsOn setGitVals
+
+ def install4jTemplateMd5 = ""
+ def digest = MessageDigest.getInstance("MD5")
+ digest.update(
+ (file("${install4jDir}/${install4j_template}").text +
+ file("${install4jDir}/${install4j_info_plist_file_associations}").text +
+ file("${install4jDir}/${install4j_installer_file_associations}").text).bytes)
+ def filesMd5 = new BigInteger(1, digest.digest()).toString(16)
+ if (filesMd5.length() >= 8) {
+ filesMd5 = filesMd5.substring(0,8)
+ }
+ install4jTemplateMd5 += filesMd5
+ install4jTemplateMd5 += "_${gitHash}"
+
+ inputs.file("${install4jDir}/${install4j_template}")
+ inputs.file("${install4jDir}/${install4j_info_plist_file_associations}")
+ inputs.file("${install4jDir}/${install4j_installer_file_associations}")
+ outputs.files(install4jConfFile)
+