문제

I have an image gallery project that displays images one by one. I want it to be a composite so that I can use it in other project.

Is that possible? How?

도움이 되었습니까?

해결책

If you use gwtdesigner there is an option to do it from eclipse: https://developers.google.com/web-toolkit/tools/gwtdesigner/wizards/gwt/library

But the normal way, is:

  • create a normal GWT module with its .gwt.xml file, and remove the entry-point tag.
  • include the stuff you want to share in it: java code into the client folder, assets into the public one, and server code into the server one.
  • compile and package as a .jar file. IMPORTANT: you must pack your source files in it.
  • Import the library in your other projects as you normally do.
  • Finally, remember to include a line to inherit your library module in the gwt.xml of those gwt projects using your library.
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top