How to transform PluginClassLoader to java.net.URLClassLoader
Hello,
I would like to know if there is, in the Open API, a wrapper to transform PluginClassLoader in java.net.URLClassLoader.
I'm trying to develop a plugin that will be taken to launch an embedded Jetty server. Server at startup scans a number of resources in the classpath. But it scans the classpath of the IDE instead of the libraries of the plugin. So I manually send to Jetty the classpath of the plugin and I receive a ClassCastException :
java.lang.ClassCastException: com.intellij.ide.plugins.cl.PluginClassLoader cannot be cast to java.net.URLClassLoader.
It's would suit me if the wrapper exist.
Thanks in advance, but i'm ready to develop the wrapper myself.
Antoine ROUAZE
Please sign in to leave a comment.
I'm not aware of the existence of any such wrapper.