>
> *That leads me to the point that the codeserver only compiles classes that 
> are loaded in the EntryPoint, correct me if I'm wrong.*
>

GWT does remove unused Java code before compiling to JS. So if your 
EntryPoint is empty, then GWT will remove everything and doesn't compile 
anything except the empty EntryPoint.
 

3) In my third case, I created branch "admintest", in which I tried the 
> suggestion that @Jens told me.
> Added a new AdminTest.gwt.xml module and defined an empty EntryPoint class.
> Both the App.gwt.xml and AdminTest.gwt.xml inhertis the Admin.gwt.xml 
> module and are renamed to "app".
>
> But while compiling, the generated js script files are overwritten.
>

What I meant was that you only run AdminTest in SDM and in the EntryPoint 
class of AdminTest you would create your AdminView you are working on.

Taking your admintest branch:

1.) move EntryPoint of Admintest to com/sdm/app/client/admin/client/
2.) move Admintest.gwt.xml to com/sdm/app/client/admin/ and update the 
entry point path in your xml.
3.) In your Admintest EntryPoint create an AdminView and put it on the 
RootPanel. ( = bootstrap your sub module)
4.) Run Admintest using SDM.

(in your html file only reference app.nocache.js)

Now SDM should only see and compile code from your admin module. In your 
production app to bootstrap a sub module you most likely need a core module 
or similar that contains your "infrastructure" code like GIN injector, 
GWT-RPC services, etc.


Because our app needs to be migrated to multiple modules as well, I can put 
up a github project showing how I plan to layout our app (including GIN).


-- J.

-- 
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 google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to