Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there path macros in IntelliJ IDEA that points to project directory ? (IDEA 10.5.2)

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!

like image 497
expert Avatar asked Nov 11 '11 04:11

expert


People also ask

How do I find the project path in IntelliJ?

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.


1 Answers

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.

like image 58
CrazyCoder Avatar answered Oct 21 '22 07:10

CrazyCoder