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?
Please sign in to leave a comment.
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.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
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.
You could add an own Plugin Host under the point "Updates" in the settings I think.
It seem to be an option. However, it seems that the repository should have a descriptor/index served at the host
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.
thx, already figured that out.
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
Why not?
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.
But still, if it doesn't work, you should open a Bug entry about it so that it can get fixed. :-)
Hello Anton,
You can set up an enterprise plugin repository and install a test version
of your plugin from there.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
yep. already figured that out. thx!
Here you have a Blog entry describing the procedure btw.: http://blogs.jetbrains.com/idea/2008/03/enterprise-plugin-repository/