score:53
When you run "project > Build"
, eclipse will compile all sources in folders on the build path to the .class files and put the .class files into the output folder you specified. Both of these folders can be configured from Project-> Properties-> Java Build Path
. Note that eclipse has the incremental build feature that will only compile the sources that have changed since the last time the project is build.
If you enable Auto-build for the project ( via "Project-> Build Automatically"
) , the "project > Build"
will run automatically when you add, remove, or modify the source files on the build path , so you don't have to call "project > Build" manually in this case.
The Publish
option in the server tab will deploy the application to your Tomcat instance by copying the project resources such as xml configuration files , web resource (html ,css, js etc) , and the compiled .class files you get from the "project > Build"
to the correct location of the Tomcat instance .
So , "Project > Build"
is about compiling java sources to the .class files while the options in the server tab is about deploying the application to the tomcat instance and maintaining the tomcat instance .
You can find the information about the "server tab" (i.e. Web Tools Platform) from the following links: http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.wst.server.ui.doc.user/topics/tpublish.html http://wiki.eclipse.org/WTP_Tomcat_FAQ
score:4
Clean, Publish and Clean Tomcat Work directory options work on server files, on the other hand Project>build work on workspace files (projects are inside workspace folder). Server files and workspace files are usually in separated folders, it depends on how do you have configured your server.
score:19
Build: compile changed source files on the build path in the project
Clean: compile all source files on the build path in the project
Publish: Deploying the updated project in the web server instance
Source: stackoverflow.com
Related Query
- Eclipse: Difference between clean, build and publish
- difference between clean and clean working directory in Eclipse WTP with Tomcat
- Difference between Eclipse Build Project and Maven Compile command
- What is the difference between "Java Build Path" and "Deployment assembly" in Eclipse dynamic web project IDE?
- What is the difference between javac and the Eclipse compiler?
- What is the difference between the Eclipse Package Explorer and the Eclipse Project Explorer?
- What is the difference between Eclipse for Java (EE) Developers and Eclipse Classic?
- Difference between Ctrl+Shift+F and Ctrl+I in Eclipse
- What is the difference between Eclipse 3.7 and Eclipse 4.1?
- What is the difference between rollback, backout and strip in the Mercurial Eclipse plugin?
- How to achieve that Eclipse clean and build (aka rebuild)?
- What is the difference between Eclipse with Spring IDE plugin and Spring Tool Suite alone?
- Difference between Java working set and Resource working set in Eclipse
- What's the difference between "Push..." and "Push to upstream..." in Eclipse
- Difference between static and dynamic web project in eclipse
- What the difference between Eclipse 3.7, 3.8 and 4.2?
- Eclipse Compare Editor: difference between the 'next difference' and 'next change' buttons?
- What is the difference between Eclipse and Netbeans if I want to use only the Java in it?
- Difference between 32 and 64 bit Eclipse
- What is the difference between Eclipse "Import" and "Create project from existing source" for Android projects?
- Clean and build an Eclipse java project with one click
- Difference between green and blue comments in eclipse
- Eclipse p2 : Difference between category.xml and site.xml
- difference between building project using maven and eclipse export as Jar
- Difference between Deployment Assembly and J2EE Module Dependencies in Eclipse
- Difference between Eclipse IDE for Java EE Developers and Eclipse Juno
- Difference in Eclipse between Gradle Dependencies and Gradle Dependencies (persisted)
- How to do clean and build in eclipse using Ant
- Strange disconnect between Eclipse CDT, included system headers, and the underlying C build
- What is the difference between setting the classpath and java build path in eclipse?
More Query from same tag
- How to update a local java applet to test in browser
- Android virtual device not listed only in eclipse
- How to show Maven multi-module project's nested-modules as top level modules in IntelliJ IDEA?
- How to Create a Compatible JAR File for Selenium Tests?
- Removed class files from android folder but still eclipse compiles and runs with no problems. how?
- ActionScript 3.0 for Eclipse?
- JUnit tests in eclipse failing when run together
- How to disable cancel button on the Job progress bar dialog?
- Importing Git project to Eclipse Workspace
- Not loading manager/html of apache-tomcat-8.0.17
- Eclipse intermittently fails to create the Java Virtual Machine
- SPARQL query against DBPedia using Java
- unchecked generics usage warning on getAllClassMetadata() instance method of org.hibernate.SessionFactory
- how to debug web project using tomcat using command prompt
- Java debug mode: how to get return value of function call
- Good Symfony Editor Netbeans or Eclipse?
- IFile from String in java
- Android SDK Manager not working; tried other fixes
- Play: Eclipse not resolving PlayEbean Package
- Best GUI designer for eclipse?
- eclipse editor colors - how to set in outline view
- How do I tell a remote debugger to actually suspend at some point?
- Sip Error on Emulator
- How to use enum in a parameterized constructor?
- ClassNotFoundException: Didn't find class "com.example.app.MainActivity" for every app I create
- android cordova phonegap config.xml unbound prefix
- Issue using gson with Android in Eclipse
- Can“t Run or Export Android Application after incorporting Facebook sdk to my project
- Eclipse not found lib folder?
- Getting started with JSF - Richfaces on Eclipse