Where can i  find how to use <super-source/> tag in gwt.xml ?

On Mar 18, 3:34 pm, Thomas Broyer <[email protected]> wrote:
> On 18 mar, 11:17, Ice13ill <[email protected]> wrote:
>
> > Is there a way to exclude imports when compiling a gwt application ?
>
> Simply put: no.
>
> > Let's say i want to use a class on client and server side with two
> > methods: one uses gwt widgets (this is the method i want to use on the
> > client side) and one uses Sockets (or smth like that... code needed on
> > the server side).
> > Obviously i get an error when importing java.net.Socket.
>
> Several options:
>  a) refactor your code so that client and server code are in distinct
> classes
>  b) include a <super-source/> in your module with a dummy
> java.net.Socket class so that the GWTCompiler doesn't choke (but it
> won't use it in the final code as the "server only" method won't be
> called by client code).
>
> Obviously, option "a" is strongly preferred, as it also makes it
> obvious that "methodB" isn't to be called by client code and vice
> versa.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to