Obtain Project Root Path in ModuleLevelBuilder

Is there any clean way to obtain the path of the root of the JpsProject in the build process of ModuleLevelBuilder????


Thanks

4 comments
Comment actions Permalink

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?

0
Comment actions Permalink

I need the File location of the project to get  a file in these file location.

0
Comment actions Permalink

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!"

0
Comment actions Permalink

Enough! Thanks!

0

Please sign in to leave a comment.