Saturday, March 21, 2015

Re: .gwt.xml define source path to code from maven dependency

Create a file Dtos.gwt.xml in de.backend package and add <source path="dtos" /> to it. Alternatively you can put the file into de.backend.dtos and then use <source path="" />. You can then inherit that module in your App.gwt.xml. 

Keep in mind that GWT needs source files so your backend dependency should contain them or you need to add backend source dependency as well to your GWT project. Ideally you would just have a dto dependency instead of a full backend dependency. Some people prefer build a gwt specific dependency, e.g. dtos-gwt.jar, which contains class + source files + gwt.xml file.

-- J.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" 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