用Eclipse Helios做Web开发时,对工程做任何修改都会导致Eclipse出现publishing to tomcat用时非常长的情况,尤其后期对页面要进行微调的时候,就会变得十分痛苦。解决办法,下载安装Web Tools Project(WTP) 3.2.1版本。可以使用Eclipse Helios的Help——>Install new software来直接安装。
英文原帖内容如下:
Publishing to Tomcat takes a long time on Eclipse Helios
I’ve you’ve just upgraded to Eclipse Helios and have noticed Tomcat takes a very long time to load and re-load whenever there is a change in the project, try the following steps:
- Download the Web Tools Project files for version 3.2.1 from here
- Close Eclipse
- Edit the eclipse/eclipse.ini file by adding the following lines to the end
-clean
-debug - Extract the entire contents of the zip file into your eclipse/dropins folder. You can keep the folder structure from the zip file so you end up with eclipse/dropins/eclipse/…
- Start eclipse up again
- Open the: eclipse/configuration/org.eclipse.equinox.simpleconfigurator/bundles.info file and look for the string: org.eclipse.jst.j2ee
if you see a version greater than org.eclipse.jst.j2ee,1.1.400 then you should be good to go.
or use the install manager from eclipse: choose “The Eclipse Web Tools Platform (WTP) software repository” as the location you want to work with and select the Web Tools Platform (WTP) 3.2.1 and install.