On 20 mai, 10:21, Ramanathan <[email protected]> wrote:
> Got it.
> But the bad part is that, if I specify the servlets in module.xml only,
> then the hosted mode gives me warning that they should be in web.xml.
> So it looks like I will have to have the servlets specified in both
> module.xml and web.xml,
> even though I do not need them when I ship my application.
>
> Is there any workaround?
If you have servlets that's only used for unit tests, create a new
module (myModuleTest.gwt.xml) that inherits your module to be tested
(myModule.gwt.xml) and defines the servlets. This test module won't be
passed to the hosted mode which would then not warn.
Have a look at how RequestBuilder and FormPanel are being tested in
GWT's own code for an example.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---