In this article, we will discuss how to build Java projects automatically in Eclipse IDE
Eclipse IDE:
- Eclipse IDE provides number of features to make developers task cut easy
- One such thing is, to enable “Build Automatically” option which perform incremental build whenever resources is modified/edited/saved
To enable Build Automatically feature in Eclipse IDE:
There are 2 options available,
- Using Project Menu –> Build Automatically
- Enabling through Windows –> Preferences –> General –> workspace
Option 1: Go to Menu option –> Select Project –> check Build Automatically
Option 2: Go to Menu option –> Select Windows –> Preferences –> General –> workspace
Note: here, we can clearly specify after how long (in ms) project should be re-build
To disable Build Automatically feature in Eclipse IDE:
Sometimes, it is quite annoying that even for a small change, eclipse starts building project. So, it is better advised to disable “Build Automatically” option from Project Menu
For Option 1: Simply, uncheck “Build Automatically” from Project menu, as shown in the below screen-capture
For Option 2: Disable “Build Automatically” through Windows –> Preferences –> General –> workspace, as shown in the below screen-capture
Uncheck “Build Automatically”
References:
- https://help.eclipse.org/mars/index.jsp?topic=%2Forg.eclipse.cdt.doc.user%2Ftasks%2Fcdt_t_autobuild.htm
- http://help.eclipse.org/luna/index.jsp?topic=%2Forg.eclipse.cdt.doc.user%2Ftasks%2Fcdt_t_autosave.htm
Happy Coding !!
Happy Learning !!