Is there path macros in IntelliJ IDEA that points to project directory ?
In build 10.5.2 that I have
${PROJECT_DIR}
is null.
Thanks!
how would i get the project root in intellij ? Working directory is set to the project root automatically. You can use File directory = new File("./data"). getCanonicalPath(); in your code to get the full path to the data directory on any system where the project will be running.
Some fields in IDEA run/debug configuration indeed accept ${PROJECT_DIR}
and ${MODULE_DIR}
variables, for example the working directory field, however it's not available in all the fields, like in your case when you want to pass a parameter to the GWT compiler.
There is already an open issue related to your request, but you can file another one if you want.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With