简体   繁体   中英

Eclipse: Export .JAR on save

I want to export a project every time I make changes to it, but going through the menus Right click -> Export... -> JAR File -> Next -> Finish is annoying an a bit time consuming.

I heard you could somehow make Eclipse automatically export when saving, I searched everywhere but I didn't find anything, I'd like to know how to do that. Thanks in advance.

Your best bet is:

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

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

Here are two links that tell you how:

Here's an excellent, brief tutorial for getting started with Ant:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM