| Summary: | Need a way to undo/disable validation | ||
|---|---|---|---|
| Product: | [WebTools] WTP Common Tools | Reporter: | Aaron Digulla <digulla> |
| Component: | wst.validation | Assignee: | wst.validation <wst.validation-inbox> |
| Status: | NEW --- | QA Contact: | Chuck Bridgham <cbridgha> |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | thatnitind, valentinbaciu |
| Version: | 3.2 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Aaron Digulla
You can set up filtering rules from the project's Validation property page. You should also be able to remove the messages by deleting them in the Problems view. Otherwise I'm unsure of what''s being requested. I unchecked the two options "JSP Content Validator" and "JSP Syntax Validator" but the errors in the problem view don't go away. I had to manually delete them. Also, I'm using the Tomcat plugin which copies all resources to a folder in the project, so I get every error twice. I'd like to specify for the "tomcat" folder "don't validate this - ever!" so I can get validation for the JSP source folder but not for any copies. Lastly, I have a folder with JSPs compiled to Java code where I can't disable specific Java warnings (like unused imports, unused private fields, etc). For code generators, it would be great if validation could be specified on a per-folder basis. Aaron, As Nitin said, you can specify fine grained rules for validation. Just go to the validation preferences, select the validator you want to configure and click the ... button in the settings column. In there you can add various rules - including file and folder exclusion rules. As for derived resources, the should not be validated anymore since WTP 3.1. See bug 276181. The framework will prompt you for a rebuild when you change the preferences and should delete old markers in the process. Do you have the validation builder configured for your project? The builder is added automatically for certain projects (Java EE, web) but not for others (simple, Java). I the above instructions are not helping, please attach a sample project with detailed steps on how to reproduce the problem and we'll look into it. Hope this helps, Valentin |