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

**URL:** <https://discuss.gradle.org/t/is-it-possible-to-generate-project-specific-start-scripts-using-the-application-plugin/3272>\
**Category:** Old Forum Archive\
**Created:** [March 5, 2012, 11:31pm UTC](https://discuss.gradle.org/t/is-it-possible-to-generate-project-specific-start-scripts-using-the-application-plugin/3272 "2012-03-05T23:31:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mattkhan](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/mattkhan/32/91_2.png) [@mattkhan](https://discuss.gradle.org/u/mattkhan)\
**Post date:** [March 5, 2012, 11:31pm UTC](https://discuss.gradle.org/t/is-it-possible-to-generate-project-specific-start-scripts-using-the-application-plugin/3272/1 "2012-03-05T23:31:00Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![luke\_daley](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/luke_daley/32/9890_2.png) [@luke\_daley](https://discuss.gradle.org/u/luke_daley)\
**Post date:** [March 8, 2012, 12:42pm UTC](https://discuss.gradle.org/t/is-it-possible-to-generate-project-specific-start-scripts-using-the-application-plugin/3272/2 "2012-03-08T12:42:00Z")

</div>

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

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

```

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