On Sunday, October 27, 2013 4:39:02 PM UTC-7, giuseppe...@ab4cus.com wrote:
I have a GWT project. Client code is located in the "client" dir. I want to add external java classes (mainly DTO classes) that are in external directory (project). How I need to configure the gwt.xml file?
I get errors of this kind:
[ERROR] Errors in 'file:/C:/Myprojects/
ProjectName/ProjectModule/src/ com/domain/sample/client/ MyWeb.java' [ERROR] Line XX: No source code is available for type com.domain.sample.dto.MyClass; did you forget to inherit a required module?
I'm working with Eclipse and my workspace structure is:
MyDTO - Java Project
MyWebUI - GWT Project
I need that MyWebUI take files from MyClass located at the package com.domain.sample.dto wich is part of MyDTO project and compiles it as a client code. The idea is to reuse the code of MyDTO in other GWT's. Is this possible at all? From what I see GWT allows only that the code MUST BE under client directory (package) within the GWT project.
Already tried to define MyDTO as a module, adding the Dto.gwt.xml to com.domain.sample, pointing to com.domain.sample.dto.
Contents of Dto.gwt.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.5.1//EN" "http://google-web-toolkit.
googlecode.com/svn/tags/2.5.1/"> distro-source/core/src/gwt- module.dtd
But still get the same error... Any ideas?
Thanks for helping me :D
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 firstname.lastname@example.org.
To post to this group, send email to email@example.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.
Post a Comment