> 3. Create a module descriptor for the common code
>
>    In d:\source\com\company\common.gwt.xml
>
>      <module>
>        <inherits name='com.google.gwt.user.User'/>
>        <inherits name='com.google.gwt.user.theme.standard.Standard'/>
>        <source path='interface'/>
>      </module>

I think you want your module one level further down, in the
com.company.common package. As it stands now, your <source> tag
references package com.company.interface.



On Mon, Mar 9, 2009 at 8:43 AM, s040606 <ssmith3...@rogers.com> wrote:
>
> I have a GWT module which depends on some non-gui non-widget java code
> that logically belongs outside of the GWT source tree. I know there
> are lots of posts about things like this, but many are confusing - I'd
> like to be very explicit.
>
> My GWT project is at
>
>  c:\GWTProjs\ProjectX
>
> and the common code is at
>
>  d:\source\com\company\common (note the different drive)
>
>
> One of the GWT classes, com.company.ProjectX.client.xyz  requires
> com.company.common.interface.abc
>
>
> Ok, so in order for this to work, here's what I've done:
>
> 1. Added a path to the common source code in the compile command's
> classpath
>
>    In c:\GWTProjs\ProjectX\ProjectX-compile.cmd
>
>     �...@java -Xmx256M -cp "....;d:/source"
>
>
> 2. Inherit the common code from the project's module descriptor
>
>    In c:\GWTProjs\ProjectX\src\com\company\ProjectX\ProjectX.gwt.xml
>
>      <inherits name='com.company.common'/>
>
> 3. Create a module descriptor for the common code
>
>    In d:\source\com\company\common.gwt.xml
>
>      <module>
>        <inherits name='com.google.gwt.user.User'/>
>        <inherits name='com.google.gwt.user.theme.standard.Standard'/>
>        <source path='interface'/>
>      </module>
>
>
> When I try to invoke c:\GWTProjs\ProjectX\ProjectX-compile.cmd, I get
> the following error:
>
>  [ERROR] Line 23: abc cannot be resolved to a type
>
> I'm not really sure why. I have some confidence in Steps 1 + 2, but
> step 3 has me worried because the source code does not reside in a
> "client" subdirectory. I'm also not sure if I've mixed the inherits
> and source tags properly.
>
> Any ideas on how to fix this will be appreciated.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to