Community
Participate
Working Groups
Build Identifier: I20110613-1736 This happens, because method NewHTMLFileWizardPage.initialPopulateContainerNameField() overrides WizardNewFileCreationPage.initialPopulateContainerNameField() so that if the selected path is not located inside the default web content path then the former is replaced by the latter. The check should be improved to accept the selected path if it is located inside any of web content root resources. Reproducible: Always Steps to Reproduce: 1. Create new Dynamic Web Project. 2. Create folder WebContent2 and modify file /.settings/org.eclipse.wst.common.component by adding a line <wb-resource deploy-path="/" source-path="/WebContent2"/> before line <wb-resource deploy-path="/" source-path="/WebContent"/> 3. Select folder WebContent in Package Explorer and invoke New HTML File wizard. 4. Make sure that container is initialized with WebContent2, not with WebContent - that is a bug.
Created attachment 202851 [details] proposed patch
Created attachment 202852 [details] proposed patch
Looks good to me.
Code checked into 3_3_Maintenance and HEAD.