So I was tinkering a few weeks back and this is what I did to try and remove the storage of the absolute paths of the project dir stored in the gradle.prefs file as project_dir and connection_project_dir.
Changed class ProjectConfigurationPersistence.
- Deleted static preference names for connection_project_dir and project_dir
- Removed adding anything related to the project’s location in the saveProjectConfiguration method.
- In readProjectConfiguration, right before returning the configuration I got the project directory as a File using: File projectDir = workspaceProject.getLocation().toFile(); and alway use projectDir for FixedRequestAttributres constructor where connection_project_dir config value was used before as well as passing in to ProjectConfiguration.from(…) where project_dir configu value was used before.
That was the extent of what I’ve looked into on my own. I’m not 100% certain why there was two config variables for project directory. Is there a case where they may be different that I’m unaware of?