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

Bug 323160

Summary: JS validator should ignore derived resources by default
Product: [WebTools] JSDT Reporter: Jim Zhang <jzhang>
Component: GeneralAssignee: Nitin Dahyabhai <thatnitind>
Status: RESOLVED FIXED QA Contact: Nitin Dahyabhai <thatnitind>
Severity: normal    
Priority: P3 CC: cmjaun
Version: unspecifiedFlags: cmjaun: review+
Target Milestone: 3.2.3   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
proposed patch
none
updated patch none

Description Jim Zhang CLA 2010-08-19 11:13:56 EDT
Build Identifier: WTP 3.2

there are cases where I have javascript code alongside my java code.  as such, these js files will be existing inside the java output folder, for instance web-inf/classes, after build.  js validation should ignore these files by default since they are derived resources.  Currently validator does go through these files and flag errors if there are validation problems.

Reproducible: Always

Steps to Reproduce:
1. create a dynamic web project
2. add a js file with validation errors (such as missing "}") to a java source package
3. build the project
4. notice the error on the js file inside the web-inf/classes folder
Comment 1 Nitin Dahyabhai CLA 2010-09-06 21:35:15 EDT
Created attachment 178289 [details]
proposed patch
Comment 2 Nitin Dahyabhai CLA 2010-09-27 18:03:45 EDT
Created attachment 179695 [details]
updated patch
Comment 3 Nitin Dahyabhai CLA 2010-09-27 18:07:23 EDT
Committed to HEAD.
Comment 4 Chris Jaun CLA 2010-09-28 17:06:07 EDT
Fixed in 3.2.3 and HEAD.