Validation of web.xml for 2.5 projects [message #202874] |
Tue, 23 October 2007 04:30 |
Eclipse User |
|
|
|
Hi all,
I am trying to implement a validator for the web.xml file in 2.5 projects.
Check https://bugs.eclipse.org/bugs/show_bug.cgi?id=204148
I have attached a patch with the initial ideas for implementation and a unit
test for the validator.
The validation is separated in two main classes -
org.eclipse.jst.javaee.web.internal.util.WebValidator and
org.eclipse.jst.javaee.internal.web.validation.JeeUIWarValid ator
The WebValidator is the emf validator for the model. I have added two
additional methods for checking Servlets and Servelts Mappings. The
validator also checks for every servlet element if the servlet class exists.
The JeeUIWarValidator is a wrapper for the calls to the WebValidator that
supports the cancelation of the validation.
The attached patch is just the initial idea of the implementation and it
will soon change.
It will be greate if you can check the implementation and give you comments.
Best Regards,
Kiril
|
|
|
Powered by
FUDForum. Page generated in 0.02649 seconds