Wednesday, October 27, 2010

Renaming modules

Hi

I was reading http://code.google.com/webtoolkit/doc/latest/DevGuideOrganizingProjects.html#DevGuideModuleXml, and see the following code snippet under renaming modules section:

com.foo.WorkingModule.gwt.xml:
<module rename-to="com.foo.MyModule">
<inherits name="com.foo.MyModule" />
<set-property name="user.agent" value="ie6" />
<set-property name="locale" value="default" />
</module>

Why we want to rename com.foo.WorkingModule to com.foo.MyModule, and then inherits itself again?


Also, what is the reason we must rename the module in order to restrict the number of permutations? Why can't we do this without renaming the module like the following?

com.foo.WorkingModule.gwt.xml:
<module>
<set-property name="user.agent" value="ie6" />
<set-property name="locale" value="default" />
</module>


I'm confused, :-)


--

Hez

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment