Sorry for jumping in, but you could use:
public void yourMethod(...) {
if (!GWT.isClient()) {
everything in your method.
}
}
The complier should then ignore everything inside the conditional.
However, it seems a bit of a kludge to exclude the whole method. Another option is sub-classing and
have a server-side version which is a sub-class of your shared class - I've done that before and
IMHO its a bit more elegant.
HTH
Alan
On 12/21/2010 10:36 AM, kevin wrote:
I was hoping to do it within a class.
For instance, say have method a() only available on the server.
On Dec 21, 12:41 pm, Mauro Bertapelle<mauro.bertape...@gmail.com>
wrote:
In the<source> tag of the module XML file you can specify the
subpackage associated with the classes you want GWT to compile.
You can even exclude some particular classes using a pattern based
filter:http://code.google.com/intl/it-IT/webtoolkit/doc/latest/DevGuideOrgan...
--
Alan Chaney
CTO and Founder, Mechnicality, Inc.
www.mechnicality.com
--
You received this message because you are subscribed to the Google Groups "Google
Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.