If is a reusable artifact, you don't need an entry point.

2011/9/21 darkflame <[email protected]>

> I was simply trying to reuse code from one project in another.
>
> I've done this many times before, by simply adding the project to the
> build path in Eclipse.
> This normally has worked fine - I can use widgets and code from the
> other projects just fine. It compiles fine.
> Interestingly, I have never had to previously add any inherits to the
> gwt.xml file for this to work. These projects compile just fine
> without any reference in ther xml (and still do). I assumed eclipse or
> the gwt compiler sorted this out itself.
>
> Trying it with a new project though, I now keep getting the "did you
> forget to inherit the require module" error when I reference code
> elsewhere.
> Ok, I thought, this time I'll just add the module to the xml;
>
> <?xml version="1.0" encoding="UTF-8"?>
> <module rename-to='jarg_scenetest'>
>  <!-- Inherit the core Web Toolkit stuff.                        -->
>  <inherits name='com.google.gwt.user.User'/>
>
>  <inherits name='com.darkflame.MyApplication' />
>
>  <!-- Inherit the default GWT style sheet.  You can change       -->
>  <!-- the theme of your GWT application by uncommenting          -->
>  <!-- any one of the following lines.                            -->
>  <inherits name='com.google.gwt.user.theme.clean.Clean'/>
>  <!-- <inherits name='com.google.gwt.user.theme.standard.Standard'/>
> -->
>  <!-- <inherits name='com.google.gwt.user.theme.chrome.Chrome'/> -->
>  <!-- <inherits name='com.google.gwt.user.theme.dark.Dark'/>     -->
>
>  <!-- Other module inherits                                      -->
>
>  <!-- Specify the app entry point class.                         -->
>  <entry-point class='com.darkflame.client.client.JARG_SceneTest'/>
>
>
>  <!-- Specify the paths for translatable code                    -->
>  <source path='client'/>
>  <source path='shared'/>
>
> </module>
>
>
> Note the "<inherits name='com.darkflame.MyApplication' />" is me
> inheriting of the project I want to reuse code from.
>
> This removes the error and it compiles.....but now the MyApplication
> projects onModuleLoad actualy runs!
> For some reason its not just referencing the code, but triggering the
> whole module :?
>
> Whats going on?
>
> --
> 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.
>
>

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