This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes [Eclipse] refresh vs clean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "[Eclipse] refresh vs clean" Watch "[Eclipse] refresh vs clean" New topic
Author

[Eclipse] refresh vs clean

ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
What is the difference between refresh (select project, right click and refresh) and clean in Eclipse?

Thanks.
Jeroen T Wenting
Ranch Hand

Joined: Apr 21, 2006
Posts: 1847
Refresh rereads the sourcefiles to see if there are changes made outside Eclipse.
Clean removes all compiled classes and forces recompilation of the entire project (or workspace depending on what you select to be cleaned).


42
ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
Originally posted by Jeroen T Wenting:
Refresh rereads the sourcefiles to see if there are changes made outside Eclipse.
Clean removes all compiled classes and forces recompilation of the entire project (or workspace depending on what you select to be cleaned).


... but refresh also compiles the files.
Jeroen T Wenting
Ranch Hand

Joined: Apr 21, 2006
Posts: 1847
Only files that were changed, not all of them.
ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
Thanks Jeroen.

Which one should we use?
geeksun wave
Greenhorn

Joined: Nov 01, 2010
Posts: 1
ankur rathi wrote:Thanks Jeroen.

Which one should we use?


In deferent conditions,use deferent option.

the other option is "Build Automatically",it can compile source file automatically when source file changes.
 
Don't get me started about those stupid light bulbs.
 
subject: [Eclipse] refresh vs clean