This is the structure for my Gradle project:
- Game [parent]
|- Server [module]
-- Cache
|- Client [module]
The problem occurs when I try to access the cache from my server java project using:
new File("/cache/cacheItem.dat");
Java will now look in the parent folder (Game) for the cache instead of the server folder and I don't know how to change the root for the server project using Gradle. I would like to know how to change the root directory of the server to it's own folder instead of the parent.