How do I change unixStartScriptGenerator.template in the createStartScripts task so that distTar uses my custom template file in build.gradle?
问题 I need to modify the start script that gradle generates for the distTar task. I seem to be able to set unixStartScriptGenerator.template as shown below, but when I unpack the script from the tar my changes are not there. This is my full build.gradle : apply plugin: 'java' apply plugin: 'war' // to use the main method in Main, which uses Jetty apply plugin: 'application' mainClassName = 'com.example.Main' project.version = '2017.0.0.0' repositories { mavenLocal() mavenCentral() } task