月蚀:差异洁净的,构建和发布 [英] Eclipse: Difference between clean, build and publish
问题描述
我使用的Eclipse和Tomcat。在服务器上(的右键的)选项卡,你有选择:
干净,发布和Tomcat的清洁工作目录,什么这些选项确实和他们如何从不同的项目>构建
I am using eclipse with tomcat. On the server (right-click)tab you have the options: Clean, Publish and Clean Tomcat Work directory, What do these options really do and how are they different from project > Build
推荐答案
当您运行项目>建立
,月食将汇编生成文件夹中的所有源路径.class文件,并把.class文件到您指定的输出文件夹。这两个文件夹可以从项目 - &GT进行配置;属性 - > Java构建路径
。需要注意的是日蚀增量编译功能,将只编译自上次该项目建设已更改的来源。
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.
在服务器选项卡中的发布
选项将通过复制该项目的资源,如XML配置文件,网络资源(HTML,CSS,JS应用程序部署到您的Tomcat实例等),以及您从项目>建立得编译.class文件
到Tomcat实例的正确位置。
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 .
因此,项目>建立
即将编译Java源文件的.class文件,同时在服务器选项卡中的选项是关于将应用程序部署到Tomcat实例和维护Tomcat实例。
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 .
您可以找到有关服务器选项卡的信息(即Web工具平台)从下面的链接:
<一href=\"http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.wst.server.ui.doc.user/topics/tpublish.html\">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
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
这篇关于月蚀:差异洁净的,构建和发布的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!