You need to define a GWT module for your proj2. That's what the error
is about:

> [ERROR] Unable to find 'pkg2/module_name/Module_name.gwt.xml'

make sure the module definition for your project 2 and the source
files are in the classpath for proj1 and it all should be fine.

I also recommend reading the developers' guide as all of this is very
nicely explained:
http://code.google.com/intl/fr/webtoolkit/doc/1.6/DevGuideOrganizingProjects.html#DevGuideModules

Hope that helps,

Salvador

On 12 mai, 23:21, Manu <[email protected]> wrote:
> Hi,
> The scenario is I have two different source trees and I want to share
> some classes between my projects. For example I have one set of files
> on proj1/src/pkg1/ and another on proj2/src/pkg2/ and I am trying to
> use classes of proj2 from proj1.
>
> On the proj1 root I have the default generated build.xml and inside
> the proj1 Module_name.gwt.xml I added an:
>
> <inherits name='pkg2.module_name.Module_name' />
>
> When I try to compile in hosted mode I get the following message:
>
> [ERROR] Unable to find 'pkg2/module_name/Module_name.gwt.xml' on your
> classpath; could be a typo, or maybe you forgot to include a classpath
> entry for source?
>
> I tried adding some lines inside proj1 build.xml to add the proj2's
> root to my classpath but I had no luck.
>
> Please let me know which is the correct way to solve this kind of
> issue.
>
> Thanks
> Manuel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to