Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 349988

Summary: Delete an Html under WebContent directory triggered unchanged servlets to be built
Product: [WebTools] WTP Source Editing Reporter: Christine <jycli>
Component: wst.htmlAssignee: wst.html <wst.html-inbox>
Status: RESOLVED NOT_ECLIPSE QA Contact: Nick Sandonato <nsand.dev>
Severity: normal    
Priority: P3 CC: thatnitind
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:

Description Christine CLA 2011-06-21 16:01:11 EDT
Build Identifier: 

Using Helios with WTP support. Deleted an html file (the only html under the WebContent folder) created by using new web page wizard. It triggers a build. Unchanged servlet files are rebuilt too which should not be.

Reproducible: Always

Steps to Reproduce:
1.Create a Dynamic Web Project
2.Add a new Servlet class to this project
3.Select WebContent -> right click mouse and select New -> Web Page
4.In the new web page wizard, type in a name, then select HTML/XHTML under Basic Templates
5.Delete the html created in step 4
6.Notice that the servlet created in step 2 is recompiled
Comment 1 Christine CLA 2011-06-21 16:08:09 EDT
Observed that when creating an html using web page wizard, org.eclipse.core.resources.prefs is added to project .settings folder. It explicitly sets the encoding for this html. E.g.

eclipse.preferences.version=1
encoding//WebContent/aaa.html=ISO-8859-1

When delete the only html file, this .prefs file is deleted as well. Validate Links, build workspaces are triggered.
Comment 2 Nitin Dahyabhai CLA 2011-06-21 16:12:19 EDT
The Web Page wizard and Link validation features you mention do not come from Eclipse, but instead are part of the IBM product you're using.