Using different jars for GWT and server-side Java for same package in hosted mode

2 views
Skip to first unread message

Bruno Harbulot

unread,
Nov 18, 2009, 6:18:58 AM11/18/09
to google-we...@googlegroups.com
Hello,

Is it possible to use different jar files for the same package,
depending on whether this jar is used for server-side Java or if it's
used for GWT code?

This problem occurs with the latest development version of Restlet,
which provides two different editions of the same package (this is part
of an ongoing discussion [1]).
For example, org.restlet.Request is available in both the JSE and the
GWT editions of org.restlet.jar. Their implementations differ only
slightly (what's not supported by GWT isn't available in the GWT version).
This causes problems when developing with the Google Eclipse plugin,
using the GWT Servlet, because both jars are on the classpath, so either
the GWT side works or the server side does, but not both.

Would there be a way to tell the plugin that, for GWT matters, another
jar should be used (maybe with GWT 2, if necessary)? This would be
similar to what is done for the java.lang package with GWT.


Best wishes,

Bruno.


[1]
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=7458&dsMessageId=2419385
Reply all
Reply to author
Forward
0 new messages