Eclipse: Export .JAR on save

I want to export the project every time I make changes to it, but browsing the menu is Right click -> Export... -> JAR File -> Next -> Finish

annoying for a bit of time.

I heard that you could somehow get Eclipse to automatically export on save, I searched everywhere but I didn't find anything, I would like to know how to do this. Thanks in advance.

+3


source to share


1 answer


Your best bet:

1) Create Ant script to compile your Java and export .jar

2) Configure Eclipse "Build" script to invoke Ant every save file.

Here are two links that will tell you how:



Here's a great, quick tutorial for getting started with Ant:

+3


source







All Articles