Is it possible to generate project specific start scripts using the application plugin?

(Matt Khan) #1

As far as I can see, in milestone-8, the scripts are generated by StartScriptGenerator.groovy based on some templates (unixStartScript.txt or windowsStartScript.txt). This makes it seem what I want to do is not currently possible & what I want to do is substitute in my own template and possibly add some additional, project specific, variables in there.

Cheers Matt

(Luke Daley) #2

The simplest thing to do would be to effectively overwrite the start scripts…

startScripts {
  doLast {
    unixScript.text = "«script»"
    windowsScript.text = "«script»"

With the plugin coded the way it is, that’s going to be simplest solution.