I am trying to use the Application Plugin for a small application.
However too much modification is needed of the generated start scripts as it stands now. I want to be able to build the distribution and give it directly to the users to run. I was thinking that the generated scripts should check for the presence of another script, e.g. setenv.sh, and execute it if it is there. This is based on what Tomcat does.
The purpose of setenv.sh would be to set things like JAVA_OPTS and JAVA_HOME.
This way I could create a setenv.sh file for a particular environment, do the build, and then give the distribution to the user. Without a setenv.sh I would have to do the build, unzip it, modify the script, rezip it!
Unless I am missing something very obvious…please let me know I’m pretty new to Gradle. I suspected at first that there was something I could set within my build.gradle file in order to customize the script, but I don’t see anything or any examples of that.