Get project directory?

I'm trying to get the directory for projects, but because I have conf set to
wrapper.java.additional.6=-Dignition.projects.dir="C:\IgnitionProjects" (so i can use git without mucking with permissions) I can't use SystemManager::getDataDir.

Is there another way to get the project directory directly or will I just have to read the ignition.conf file?

Read the system prop, use that directory if it exists, otherwise fall back to resolving it from the data dir as a base.

1 Like

Thanks, how do i read the system property?

https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/System.html#getProperty(java.lang.String)

The property key is "ignition.projects.dir".