GWT Compiler does not use the whole java classpath for the sources that will
be translated to javascript. (There would be a lot of not translatable
classes). So by using the inherit tag you tell the compiler which classes
exactly need to be translated to javascript

- Daniel

2010/9/29 Abdullah Shaikh <[email protected]>

> Adding jar on the build path helps eclipse for code completion and compile
> errors, while adding the <inherits> in .gwt.xml file is for the gwt compiler
> to know that it needs to include the specified gwt module.
>
> Abdullah
>
>
> On Wed, Sep 29, 2010 at 12:17 AM, Will <[email protected]> wrote:
>
>> Hi,
>>
>> Beginner question:
>>
>> What is the difference between adding the GWT jar to my Eclipse build
>> path and the <inherits> functionality in the myapp.gwt.xml <inherits
>> name='com.google.gwt.user.User'/>
>>
>> What does the <inherit> achieve that I don't get with having the .jar
>> on my build path..
>>
>> Thanks,
>> W
>>
>> --
>> 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]<google-web-toolkit%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>>
>  --
> 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]<google-web-toolkit%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

-- 
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