There is no such thing as "project root path". A project can contain multiple modules, and each of them can have multiple content roots, each of which can be in a completely independent location.
What do you mean by "the file location of the project"? If you need to get path to a directory where the .idea folder is located, you can use org.jetbrains.jps.model.serialization.JpsModelSerializationDataService#getBaseDirectory() method.
There is no such thing as "project root path". A project can contain multiple modules, and each of them can have multiple content roots, each of which can be in a completely independent location.
What exactly are you trying to accomplish?
I need the File location of the project to get a file in these file location.
What do you mean by "the file location of the project"? If you need to get path to a directory where the .idea folder is located, you can use
org.jetbrains.jps.model.serialization.JpsModelSerializationDataService#getBaseDirectory() method.
--
Nikolay Chashnikov
JetBrains
http://www.jetbrains.com
"Develop with pleasure!"
Enough! Thanks!