# Setting the daemon trust store from gradle.properties

**URL:** <https://discuss.gradle.org/t/setting-the-daemon-trust-store-from-gradle-properties/32336>\
**Category:** Help/Discuss\
**Created:** [July 8, 2019, 2:52pm UTC](https://discuss.gradle.org/t/setting-the-daemon-trust-store-from-gradle-properties/32336 "2019-07-08T14:52:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mateidavid](https://avatars.discourse-cdn.com/v4/letter/m/edb3f5/32.png) [@mateidavid](https://discuss.gradle.org/u/mateidavid)\
**Post date:** [July 8, 2019, 2:52pm UTC](https://discuss.gradle.org/t/setting-the-daemon-trust-store-from-gradle-properties/32336/1 "2019-07-08T14:52:37Z")

</div>

Hi,

I would like to include a custom `cacerts` file in a repository, and then automatically point the Gradle daemon to this file using, e.g.:

```
# gradle.properties in project root
org.gradle.jvmargs=-Djavax.net.ssl.trustStore=cacerts

```

This works ok if the daemon gets started from the project root. However, if it accidentally gets started from a subdir/subproject (e.g. click on subproject build in IDE in the morning, after the daemon has stopped), I get a file not found error, because the path is not absolute. However, I don’t want to use an absolute path there, but a path relative to the project root. Is there a way to do this? I understand that `gradle.properties`is just a text file, but maybe there is an existing environment variable I can use, e.g. `${PROJECT_ROOT}/cacerts`? Is there some other place to put daemon arguments?

My goal is to make this as seamless as possible for people that don’t know Gradle, ideally using only settings committed in git, without instructions such as “define this or that environment variable on import”.

Thanks,  
Matei
