Registering to a tests finished event and native library dependencies in a plugin
I'm new to Idea plugin development and I have two questions. I plan to write a simple plugin that will display a gnome notification whenever my tests started in Idea finish executing.
First, is it possible to register to events like test execution finish in a custom plugin? If so, which classes should I look at to achieve it?
Secondly, I plan to display a gnome notification via dbus. The thing is that the dbus java library has some dependencies on a native library (an .so file) which is quite obvious given the fact that dbus is a linux specific thing. Where should I put that library so that it's reachable from the plugin?
Thank you,
Marcin Erdmann
Please sign in to leave a comment.
Hello, w/r to registering test listeners have a look at com.intellij.execution.junit2.ui.model.JUnitListener which can be registered via com.intellij.execution.junit2.ui.model.JUnitListenersNotifier#addListener. Yann
Thx for the hint, I will check it out!
Hello, w/r to registering test listeners have a look at com.intellij.execution.junit2.ui.model.JUnitListener which can be registered via com.intellij.execution.junit2.ui.model.JUnitListenersNotifier#addListener. Yann
---
Original message URL: http://devnet.jetbrains.net/message/5449049#5449049
As for the native libraries, I don't think there is a good way to ship them with a plugin (which is probably a good thing if you think of the security implications). The native library should work fine if you put it into the 'bin' subdirectory of the IntelliJ IDEA installation directory.
Thank you for the advice, I will try it out, but I can see that there are other so files in there so it should probably work.