Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

[Eclipse] refresh vs clean

 
ankur rathi
Ranch Hand
Posts: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the difference between refresh (select project, right click and refresh) and clean in Eclipse?

Thanks.
 
Jeroen T Wenting
Ranch Hand
Posts: 1847
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
ankur rathi
Ranch Hand
Posts: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1847
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Only files that were changed, not all of them.
 
ankur rathi
Ranch Hand
Posts: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Jeroen.

Which one should we use?
 
geeksun wave
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic