Plugin installation as unpacked folder

Is it possible to configure my custom plugin so that if the user installs it, IntelliJ will unpack the jar contents into its plugin directory? And can it load the unpacked plugins?

0
13 comments

Hello Anton,

If your plugin is a .zip file, IDEA will unpack its contents, assuming that
it contains jar files. If the plugin is a .jar file, it will not be unpacked.

I think you could put a bunch of .class files inside a .zip, IDEA should
be able to load such a structure.

Is it possible to configure my custom plugin so that if the user
installs it, IntelliJ will unpack the jar contents into its plugin
directory? And can it load the unpacked plugins?


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Avatar
Permanently deleted user

I found the following page about the plugin structure: http://confluence.jetbrains.net/display/IDEADEV/IntelliJ+IDEA+Plugin+Structure

It all works fine, but is there a way to test .zip-packaged plugin installation without having to upload it to plugin hosting?
If I just copy the zip archive to plugins folder, IntelliJ doesn't extract it. In the PluginDownloader I've found the confirmation of this issue.

0

You could add an own Plugin Host under the point "Updates" in the settings I think.


0
Avatar
Permanently deleted user

It seem to be an option. However, it seems that the repository should have a descriptor/index served at the host

0

So what?
http://plugins.intellij.net/plugins/list/?build=IU-107.322 doesn't look too complicated. You should be able to prepare a static one for your purpose.
Maybe there is also some repository software, I don't know.

0
Avatar
Permanently deleted user

thx, already figured that out.

0
Avatar
Permanently deleted user

In fact, setting an alternative URL in the Updates tab didn't work for me. I was rather sucessful with -Didea.plugins.host=http://myhost option

0
Avatar
Permanently deleted user

No idea acutally. The URL seemd to be ignored. The plugin did not get to the list of the plugins available for download if I tried it via the Updates tab. With the -D... argument it was all fine.

0

But still, if it doesn't work, you should open a Bug entry about it so that it can get fixed. :-)


0

Hello Anton,

You can set up an enterprise plugin repository and install a test version
of your plugin from there.

I found the following page about the plugin structure:
http://confluence.jetbrains.net/display/IDEADEV/IntelliJIDEAPlugin+S
tructure

It all works fine, but is there a way to test .zip-packaged plugin
installation without having to upload it to plugin hosting?

If I just copy the zip archive to plugins folder, IntelliJ doesn't
extract it. In the PluginDownloader I've found the confirmation of
this issue.


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Avatar
Permanently deleted user

yep. already figured that out. thx!

0

Please sign in to leave a comment.