I have project with structure like
+com.example
+domain
+enums
+gwt
+client
+server
+shared
my gwt config
<source path='client'/>
<source path='shared'/>
<entry-point class="com.example.gwt.client.Dashboard"/>
What I really wan’t is to use my domain enums at client side. Or I must duplicate them as shared classes/convert to Strings?
If the enum classes are GWT-compatible, you could place an
Enums.gwt.xmlindomain/enumswith a<source path='' />tag. Your maingwt.xmlfile would need to add an<inherits>tag to pull inEnums.gwt.xml. Also, the<source>tags can be filtered if you need finer-grained control.