krasserm/grails-jaxrs — pull request #8 by davidecavestro (2012-08-01 13:14:36+00:00)
Title: Jaxrs 0.6 servlet25compatible

Copied (and slightly modified) two spring-test source files in order to remove runtime dependencies on that library and removed runtime references to classes from grails-test. See http://code.google.com/p/grails-jaxrs/issues/detail?id=66#c9 and http://code.google.com/p/grails-jaxrs/issues/detail?id=39#c5 .

I've tested the changes and it works for me on this branch... I hope this way we can:
* remove runtime dependencies from spring-test
* avoid adding new runtime dependencies to grails-test only to support the patch I previously prepared for servlet 2.5 compatibility

Please note I've copied two source files from springframework 3.0.5 distribution: I am not a lawyer, but I've seen that spring framework sources and grails-jaxrs ones are all distributed under the apache license v2. I read it and I've found it "quite friendly with itself" :-) So I've only added a notice into the header of each copied file in order to declare that they have been copied from the relevant spring framework distribution and then modified. The copyright belongs to the original authors (as per the apache license).

The only relevant change I made to spring files was making MockHttpServletRequest not an instance of HttpServletRequest in order to avoid references to the new types introduced into servlet 3 apis.

I'd be happy if cahya could gave some feedback on this fix refinement when available (see http://code.google.com/p/grails-jaxrs/issues/detail?id=66#c7 ).