The best approach might be to create a library instead of trying to directly import specific classes into your module dependencies .
And Maven could be a good candidate to help you to solve your problem .
http://maven.apache.org/
http://mojo.codehaus.org/gwt-maven-plugin/user-guide/library.html
http://stackoverflow.com/questions/4901786/best-way-to-build-library-code
Regards .
Le mercredi 25 mars 2015 22:58:14 UTC+1, Jiyuan Zheng a écrit :
I have an interface class from Project-A which contains a static class.
I want to import this class to my gwt Project-B, so I wrote a module.xml file to include the interface class in Project-A and tried to use it.
Here is how it looks like:
<module> <inherits name='com.google.gwt.user.
User' /> <source path=""> <include name="IDefinition.java"/> <include name="metadata/input/IInputMetaDataProvider.java" /> <include name="util/IXMLTagHelper.java"/> <include name="util/XMLTagHelper.java"/> </source> </module>Other classes are imported without any problem, but the class inside IInputMetaDataProvider is not imported. Here is the error:
[ERROR] [onboardingtool] - com.xxx.xxx.xxx.metadata.input
. IInputMetaDataProvider.EnumeratedDomainInfo cannot be resolved to a typePlease help, thanks
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