Clean and build an Eclipse java project with one click

后端 未结 5 1886
孤街浪徒
孤街浪徒 2021-02-05 18:55

Is it possible to clean and build a java project in Eclipse with one click? I don\'t want to go to Project -> clean -> OK and than to project menu \'Build project\'

相关标签:
5条回答
  • 2021-02-05 19:20

    If you need something more powerful than clean and deploy, I suggest to learn Ant build tool. http://ant.apache.org/

    Just configure it for your project and prepare the build script, than configure the build script for the clean and build target. If you need, also to deploy it on your server (glassfish, weblogic or whatever you want). With Ant you can configure more situation (test, production..)

    0 讨论(0)
  • 2021-02-05 19:28

    Select your project and goto menu bar:Select Windows then->Select Preferences then ->Select Keys then ->Select Build and Clean

    0 讨论(0)
  • 2021-02-05 19:34

    In Project->Clean I select "Clean projects selected below", select my project(s) and check "Start a build immediately" with "Build only selected projects".

    Then go to Window->Preferences->General->Keys, search "Build clean" and enter my own binding for this command. For example, Ctrl + D.

    Then, when I press Ctrl + D and Enter I have clean and build.

    0 讨论(0)
  • 2021-02-05 19:42

    Just need to Ctrl + S then Build, it will be as good as new!

    0 讨论(0)
  • 2021-02-05 19:47

    When you have

    Project --> Build Automatically
    

    checked, it will be automatically rebuilt after cleaning it.

    0 讨论(0)
提交回复
热议问题