File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes IDEs, Version Control and other tools and the fly likes Clean & build project Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Clean & build project" Watch "Clean & build project" New topic

Clean & build project

shivang sarawagi
Ranch Hand

Joined: Jun 19, 2008
Posts: 153

Can anyone tell me what does clean & build project in an IDE mean or what they do ???
BalaMurali dhar
Ranch Hand

Joined: Apr 14, 2012
Posts: 60
Clean means to remove the previous project.Build means to create a project
Ivan Jozsef Balazs

Joined: May 22, 2012
Posts: 970
"Clean" can mean deleting all generated (including compiled) stuff.
BalaMurali dhar
Ranch Hand

Joined: Apr 14, 2012
Posts: 60
clean means it showing the compile time errors whereas building the project it is motivating
Peter Johnson

Joined: May 14, 2008
Posts: 5852

When you build a project, the various "builders" (the Java compiler is one example of a "builder", there can be others) create many new files within you project's directory structure. For example, the Java compiler created .class files. If you have automatic builds configured (which it is by default in Eclipse), the builder will be run as soon as you save a file that you changed. Often this can lead to undesirable results. A "clean" causes the IDE to delete all of the files that the builder built, this way you can do a fresh build.

A "clean & build" step is as close as you can get to the ideal conditions in an automated build environment, where the source code is checked out from a version control system into an empty directory and then built.

JBoss In Action
I agree. Here's the link:
subject: Clean & build project
It's not a secret anymore!