Connect to the Eclipse build process?

I want to be able to run a simple Java program when the build button is clicked in Eclipse. Currently, when I click build, it runs some JRebel registration code. I have a program that analyzes the JRebel log file and saves statistics in the database.

Is it possible to write a plug-in or somehow connect to the Eclipse build process so that after JRebel logging the program runs my program to automatically analyze the file?

Any help would be appreciated, even if you could just point me in the right direction.

Thanks in advance.

+2
source share
2 answers

You can add custom Builder to your java project.

Right click on your project. Choose Properties .

In the tree on the left, select Builders.

alt text

You can either add an ant script or a special program. You also have the option to choose when this tool will work (before or after Java Builder).

+9
source

You can write an incremental project builder and register it through an extension point: http://www.eclipse.org/articles/Article-Builders/builders.html

+1
source

Source: https://habr.com/ru/post/1337472/


All Articles