# How can I read startScript template from dependency jar's resources?

**URL:** <https://discuss.gradle.org/t/how-can-i-read-startscript-template-from-dependency-jars-resources/13891>\
**Category:** Help/Discuss\
**Tags:** plugins\
**Created:** [January 19, 2016, 6:40am UTC](https://discuss.gradle.org/t/how-can-i-read-startscript-template-from-dependency-jars-resources/13891 "2016-01-19T06:40:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dreampie](https://avatars.discourse-cdn.com/v4/letter/d/ecccb3/32.png) [@Dreampie](https://discuss.gradle.org/u/Dreampie)\
**Post date:** [January 19, 2016, 6:40am UTC](https://discuss.gradle.org/t/how-can-i-read-startscript-template-from-dependency-jars-resources/13891/1 "2016-01-19T06:40:49Z")

</div>

project a resources has “customUnixStartScript.txt”

project b dependencies has a

```
 dependencies {
    compile(a)
 }

```

project c dependencies has b

```
dependencies {
   compile(b)
}
startScripts {
  InputStream script = this.getClass().getResourceAsStream("customUnixStartScript.txt")
  //script always null
  unixStartScriptGenerator.template = resources.text.fromString(script.text)
}
```
