Prashantha
Prashantha

Reputation: 155

Difference between clean & build and build?

My understanding of build is that it compiles only the Java files which has been edited from last build and clean build will delete all the class files and compile all the files again. So what is the utility of clean build when build alone can suffice the need of giving me the latest version of class files?

Upvotes: 1

Views: 1312

Answers (1)

PaulProgrammer
PaulProgrammer

Reputation: 17630

Sometimes there are processes that update the class files or other dependencies that may not be tracked by the build system. Other times, a local change outside the build system (e.g. vi or notepad) that isn't tracked.

In either case, it's useful to do a full build before a final checkin or raising an issue.

Upvotes: 2

Related Questions