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\'
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..)
Select your project and goto menu bar:Select Windows then->Select Preferences then ->Select Keys then ->Select Build and Clean
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.
Just need to Ctrl + S
then Build
, it will be as good as new!
When you have
Project --> Build Automatically
checked, it will be automatically rebuilt after cleaning it.