how to getting all the dependencies of module in intellij?
Recently,i am writing a plugin,it need to obtain all dependencies lib in a module,But I did not find any method to get,The project may be a various types,who can help me?
English is not good, I hope you will understand what I'm saying
请先登录再写评论。
Hello,
Try ModuleRootManager.getInstance(module).getOrderEntries()
Denis
Thanks,The problem has been solved!
but i want to get the main module which is j2ee container to running?how can i do it?
I'm afraid I don't understand the question.
Denis
i means what can i get the project output dir?for example j2ee project,what can i get the dir which is packaged?
You can retrieve information about project compile output via 'CompilerProjectExtension.getInstance(project).getCompilerOutputUrl()'.
Regarding facet settings - it's facet-dependent. For example, gwt facet can be obtained via GwtFacet.getInstance(module);
Denis
and how can i get the intellij console?
Duplicate for http://devnet.jetbrains.com/message/5483551?
Denis