How to get compiler path in jps plugin?
Answered
Hello! I am developing plugin for language support, compiler is simple jar file and on current moment I getting jar file my absolute path but looks like it's not right way. Can I add my compiler as library in my project and get his path or another way also exist?
Project link: https://github.com/Bromel777/prismPlugin
Please sign in to leave a comment.
Yes, you can query libraries setup by user (see com.intellij.openapi.roots.libraries.LibraryUtil) and use its path in your TargetBuilder. Alternatively, you could also allow user to define it under dedicated settings page under Preferences | Build, Execution, Deployment | Compiler (per Project)