File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes why do we need to clean and build ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "why do we need to clean and build ?" Watch "why do we need to clean and build ?" New topic
Author

why do we need to clean and build ?

Mohan Mehra
Ranch Hand

Joined: Jul 28, 2011
Posts: 70
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

Joined: Dec 06, 2009
Posts: 62

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!


DJ aspirant, Engineering undergraduate, Tokusatsus addicted, fond of English language and Asia's, Buddhist, blogger, etc. I'll need to insert all these attributes in a Java class and manage to create methods for handling my overwhelming life
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: why do we need to clean and build ?
 
Similar Threads
JFileChooser problems
Netbeans... projects just randomly dont work...
Need to recover my build folder
project build
Does Eclipse compiles java souce code? How should I compile again if i wish to do so.