Tuesday, September 8, 2015

Re: GWT + Maven - How to move classes in the "shared" folder into a library project?

Move the shared package into a shared module. See the archetype modular-webapp here https://github.com/tbroyer/gwt-maven-archetypes.

On Tuesday, September 8, 2015 at 5:27:04 PM UTC+2, Magnus wrote:
Hello,

I am migrating code from a single GWT WebApplication into several, external libraries.
There are two libraries:
  • pure Java library
    contains classes to be used at the server side of an app

  • GWT library
    contains classes to be used at the client side of a GWT app
I have successfully moved server-side code from the main project into the pure Java library.
And I have successfully moved client-side GWT-based classes from the main project into the GWT library.

But what about the classes in the "shared" folder?
These classes must be visible at the server side and at the client side, to be used in RPC communication.

How can you move these classes out of the main project into the libraries?
Where should they go?

Thanks
Magnus

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment