Is there a difference when installing plugin from zip file or from enterprise respository?

Is there anything different behind the scenes on how IntelliJ handles installation of plugin from a zip file or from an enterprise repository?

I'm noticing a difference in behavior in particular with this piece of code...

getClass().getClassLoader().getResource("library/somefolder).toURI().toURL()

"library/somefolder" is inside the plugin jar file.

When installing from a zip file, this returns a valid resource.

When installing from an enterprise repository, this results into a NullPointerException.

0

Anybody from JetBrains can help out?

0

Tried using...

getClass().getResource("/library/somefolder").toURI().toURL()

This works for both installing from a zip file and from a repository. Can't explain why.

0

请先登录再写评论。