I am running gradle 3.5
I have to overwrite the start script with a custom start script that adds a few env variables and command line args but the distZip doesnt seem to pick this up. It continues to use the default task and creates the default sh file. The below setting doesnt seem to have an effect at all.
I have been trying this morning. I upgraded gradle 3.3 to 3.5 but that didnt help. I tried putting the startscript on the project dir. Tried a full overwrite of createStartScripts and that didnt help either.
task createStartScripts(type: CreateStartScripts) {
unixStartScriptGenerator.template = resources.text.fromFile("$projectDir/scripts/unixStartScript.txt")
doLast {
println "within custom startScripts task"
}
}
Any help to get this sorted much appreciated.
Thanks.