Thursday, December 26, 2013

Re: organizing modules and CSS resources

My app references the library with a single name:

<inherits name='mylib'/>

I guess that this causes the file mylib.gwt.xml to be searched along the java class path.

But why is it found when located under
 <workspace>/My_Library/src/mylib.gwt.xml
and not found when located under
 <workspace>/My_Library/src/mylib/mylib.gwt.xml
?


Ever thought about why you have to write <inherits name="com.google.gwt.user.User" />? Its because the User.gwt.xml file is in the package com.google.gwt.user. Your case is not any different. If you move your GWT module to the package mylib and the GWT module is called mylib then you have to write <inherits name="mylib.mylib" />

 
In addition, what about naming conflicts? I found that a file called "public/img/hborder.png" in mylib will be placed in "myapp/img/hborder.png". What if there are files of the same name in the app and thelibraries?

No idea, my guess would be conflicting files will overwrite each other.

-- 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+unsubscribe@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.

No comments:

Post a Comment