Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

why do we need to clean and build ?

 
Mohan Mehra
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why do we need to clean and build , not doing so will result in error called "Duplicate component" especially after doing changes in the code and trying to refresh in the UI in jsp or jsf
 
Marcos Silvestri
Ranch Hand
Posts: 62
Chrome Java Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe this question is not in the correct forum since it is a more general question, not a JSF.

From the Eclipse documentation web site, I got this:

----------------------------------------------------------------

Clean projects published on the server

You can use the clean option available in the Servers view to remove any invalid resources from the server before doing a full republish. This helps remove by-products generated as a result of the publishing process. When you find there is old code or an invalid state of code running on the server, try using this clean option to see if this helps remove these invalid states from the server.

----------------------------------------------------------------

Source: http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.wst.server.ui.doc.user/topics/tpublish.html

----------------------------------------------------------------

Build is something more widely known, it constructs the whole deployment, in the correct binary format, ready to be run/deployed on the OS/server.

When doing Microsoft programming in Visual Studio, if I am not wrong, we never have to clean anything, though I suspect that is a process that happens behind the curtains for us.

I hope it helps!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic