Hello,
Thanks
-- I have a Maven based java library "mylib" that compiles to a jar file which is included in different applications.
There is a package mylib.shared with code that should be used in java-only (server-side) code as well as in GWT-based (client-side) code.
To use this shared code in a GWT-based project, I added a file called shared.gwt.xml to mylib:
<module><source path='shared'/></module>
In a GWT application project "TestApp" that uses this shared code, I would include this module in the applications entry module TestApp.gwt.xml:
...<inherits name='mylib.shared'/>...
However, I found that I forgot this in an application project "TestApp" and it still works without the include statement! The shared code is "seen" by the GWT compiler and the GWT application also runs fine.
I am sure the reason is that I added the library project "mylib" as a dependend project in the project "TestApp".
But then the question is: When will I need to include the file shared.gwt.xml in an application project?
What if I only had the jar file mylib.jar? Would I then have to include the file shared.gwt.xml?
I also found that there is no source code included in mylib.jar. Do I have to modify the pom.xml file to include the source code in the jar?
I also found that there is no source code included in mylib.jar. Do I have to modify the pom.xml file to include the source code in the jar?
How is this done right?
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 https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment