Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Q: how to package Java client side source code to be reused in multiple apps?

    I am using version 2.5.

    I am refactoring 3 SmartGWTPro apps by removing common datasource and UI client side Java code and creating a separate library project that can be shared across all 3 apps.

    Obviously no problems at all with the server side code. However, the GWT compiler needs to "see" the client Java code in the common library.

    The worst solution: set symbolic links in the 3 web applications so it looks like the source tree is in each of the project directories. I really would prefer to not do this.

    Another possible solution might be to use the "maven-source-plugin" to also generate a source jar for the common library but I don't know how to:

    1. use the source jar when running in dev mode (mvn gwt:run).

    2. use the source jar when running a GWT/SmartGWT app in InteliJ

    3. build a deployable war file

    Any advice will be greatly appreciated.

    Thanks!,
    Mark

    #2
    Are you already aware of the approach of just creating a GWT module that is inherited by the two applications? Any reason this was eliminated as a possibility?

    Comment


      #3
      That is what I ended up doing.

      Comment

      Working...
      X