# Start script customization - where to put template files

**URL:** <https://discuss.gradle.org/t/start-script-customization-where-to-put-template-files/22226>\
**Category:** Help/Discuss\
**Created:** [April 5, 2017, 1:21pm UTC](https://discuss.gradle.org/t/start-script-customization-where-to-put-template-files/22226 "2017-04-05T13:21:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![diehaf](https://avatars.discourse-cdn.com/v4/letter/d/a87d85/32.png) [@diehaf](https://discuss.gradle.org/u/diehaf)\
**Post date:** [April 5, 2017, 1:21pm UTC](https://discuss.gradle.org/t/start-script-customization-where-to-put-template-files/22226/1 "2017-04-05T13:21:43Z")

</div>

I’m working on a Java application that builds up its class path at runtime and should simply be started as a jar file, that is:

> java -jar MyApp.jar

I’d like to modify the start scripts generated by the “application” plugin to start my application this way. From the docs I came up with code like the following in my “build.gradle”:

```
task createStartScripts(type: CreateStartScripts) {
  unixStartScriptGenerator.template = resources.text.fromFile('customUnixStartScript.txt')
  windowsStartScriptGenerator.template = resources.text.fromFile('customWindowsStartScript.txt')
}

```

Sadly, this does not work. No matter where I place my template files they are ignored without any error or warning message.

Does anybody know, what I’m doing wrong here?
