How to genrate my own git4idea plugin Follow
Hi,I checkout source of idea-community and change some code of git4idea plugin,it runs well.My question is how to package it and replace the official git4idea plugin
Please sign in to leave a comment.
At first, build your IntelliJ IDEA fork as mentioned in http://www.jetbrains.org/intellij/sdk/docs/basics/checkout_and_build_community.html
Then find git4idea.jar in the artifacts and replace the one you have in the installation directory.
Btw, which changes have you made? Maybe it makes sense to prepare them as a separate plugin? Or send a pull request to include the changes into the official plugin?
I add checkinSuccessful method in GitCheckinHandlerFactory.MyCheckinHandler . In this method I call an ant task with ant plugin's function.
Is there any way that I can make it as a separate plugin?
What I really want to is when git commit success do some special thing for me
Doesn't External Tools work for you? You can define an External Tool in IDEA Settings, and then in the commit dialog set to run this tool after commit.
Also, you probably can register your own `com.intellij.openapi.vcs.checkin.CheckinHandler` (with its own `checkinSuccessful()`) in a plugin via `com.intellij.openapi.vcs.checkin.CheckinHandlerFactory`.
@ Aleksey Pivovarov thanks,this work perfect for me