How do I create a listener when a project Builds from IDE

Answered

I'm building a IntelliJ plugin that needs to take some actions once the opened project in the IDE builds successfully. I need to execute this at each successful project build task. So can I create a listener for 'Build Project' task?

Any suggestions would be greatly appreciated!

Thanks.

2
2 comments

See com.intellij.openapi.compiler.CompileTask

0

@Yann

`com.intellij.openapi.compiler.CompileTask` doesn't work with PyCharm or android studio gradle tasks.

0

Please sign in to leave a comment.