# Mounted resource in jar file

**URL:** <https://forum.inductiveautomation.com/t/mounted-resource-in-jar-file/94059>\
**Category:** Module Development\
**Created:** [August 1, 2024, 3:59pm UTC](https://forum.inductiveautomation.com/t/mounted-resource-in-jar-file/94059 "2024-08-01T15:59:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![abelew](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@abelew](https://forum.inductiveautomation.com/u/abelew)\
**Post date:** [August 1, 2024, 3:59pm UTC](https://forum.inductiveautomation.com/t/mounted-resource-in-jar-file/94059/1 "2024-08-01T15:59:29Z")

</div>

GAteway hooks have a method called getMountedResourceFolder, which mounts a folder from a module's gateway jar file. I'm following the gradle tutorial for creating a module. How do i add a resources folder to my project that'll get included in the gateway jar in the module?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [August 1, 2024, 4:03pm UTC](https://forum.inductiveautomation.com/t/mounted-resource-in-jar-file/94059/2 "2024-08-01T16:03:24Z")

</div>

Standard layout would be a `src/main/resources` folder next to your `src/main/java` folder.

---

<div class="post-metadata">

**Author:** ![abelew](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@abelew](https://forum.inductiveautomation.com/u/abelew)\
**Post date:** [August 1, 2024, 4:04pm UTC](https://forum.inductiveautomation.com/t/mounted-resource-in-jar-file/94059/3 "2024-08-01T16:04:15Z")

</div>

does that automatically get copied over, or do i have to modify the build script?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [August 1, 2024, 4:04pm UTC](https://forum.inductiveautomation.com/t/mounted-resource-in-jar-file/94059/4 "2024-08-01T16:04:57Z")

</div>

Anything in `src/main/resources` should be automatically included in the jar file.
