Eclipse getBundle().getDataFile() equivalent in Intellij
Hi Intellij team,
In Eclipse we have below methods. Do we have any equivalent methods in Intellij?
I've Created an Intellij-plugin jar, which has many dependent jars inside it, which i would like to copy into getDataFile() and load dynamically through class loader.
Please sign in to leave a comment.
Something along these lines will get you the path to files of your plugin:
PluginId pluginId = PluginManagerCore.getPluginByClassName(getClass().getName());
IdeaPluginDescriptor descriptor = PluginManager.getPlugin(pluginId);
File jarPath = new File(descriptor.getPath(), "lib/extraJars/additional.jar");