Okay, thanks. I am probably making a spelling mistake somewhere.
I changed the GWT compiler logging level, and I can see that my module is loaded. It also shows that the compiler found translatable resources. I will investigate further and provide feedback when I find out what the problem is. Jason. On 12 March 2010 11:30, Enrico Goosen <[email protected]> wrote: > Hi Jason, > > Here's an example of what the module file (*.gwt.xml) looks like: > <module> > <inherits name="com.google.gwt.user.User"/> > <inherits name="com.googlecode.gwt.math.Math"/> > <inherits name="com.allen_sauer.gwt.log.gwt-log" /> > <inherits name="com.gwtext.GwtExt"/> > <stylesheet src="css/extension.css" /> > <source path="client" /> > </module> > > You can place the module file in your source package eg. za.co.myproject > > When you jar up the above project, you will have classes and source files > in the jar as well as the GWT module file. > eg. > za > co > myproject > mymodule.gwt.xml > mypackage > MyClass.class > MyClass.java > > Make the jar available on your classpath, and as per my previous email: > In the project that will be using the module, you use the inherits tag to > indicate the module you want to use. > <inherits name="za.co.myproject.mymodule"/> > > Hope this helps. > > Regards, > Enrico > > ------------------------------ > *From:* [email protected] [mailto:[email protected]] *On > Behalf Of *Jason Purcell > *Sent:* 12 March 2010 11:18 AM > > *To:* [email protected] > *Subject:* Re: [CTJUG Tech] GWT source question > > Maybe I should ask: Where does the other project's module (e.g. > mymodule.gwt.xml) go? In the same folder as the classes I am referencing, > or in root? > > On 12 March 2010 10:27, Enrico Goosen <[email protected]> wrote: > >> Hi Jason, >> >> If you want to use classes from another project in an existing GWT >> project, you need to jar up the classes, including the source. >> The source from the other project will need to be made available as a GWT >> module. >> So the other project will have a mymodule.gwt.xml file. >> Example: >> You module file may be in the following package: >> za.co.mypackage >> >> In the project that will be using the module, you use the inherits tag to >> indicate the module you want to use. >> <inherits name="za.co.mypackage.mymodule"/> >> >> Regards, >> Enrico >> >> >> ------------------------------ >> *From:* [email protected] [mailto:[email protected]] >> *On Behalf Of *Jason Purcell >> *Sent:* 12 March 2010 09:23 AM >> *To:* [email protected] >> *Subject:* [CTJUG Tech] GWT source question >> >> Hi there... >> >> If I want to make certain classes available on the client side in GWT, >> then it has to be in the "client" folder by default. >> >> However, I want to be able to use classes from another project. I have >> access to the source of the project. >> >> Apparently I have to specify the source in the module (*.gwt.xml) but I >> can't get it to work and I don't see any working examples on the internet. >> >> Something like this: >> >> >> <?xml version="1.0" encoding="UTF-8"?> >> <module> >> >> <inherits name="com.google.gwt.user.User"/> >> <inherits name="com.google.gwt.http.HTTP" /> >> >> <entry-point class="com.mystuff.web.gwt.client.MainEntryPoint"/> >> >> <source path=???????????????????????????> //What format??? >> Hard-coded? Relative path? Namespace? >> >> <!-- Do not define servlets here, use web.xml --> >> </module> >> >> >> >> Does anyone know how I can do this, or even specify multiple source >> locations? >> >> By the way, I am using Netbeans 6.8 on Windows, if it helps. >> >> Regards, >> Jason. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "CTJUG Tech" group. >> To post to this group, send email to [email protected] >> To unsubscribe from this group, send email to >> [email protected]<ctjug-tech%[email protected]> >> For more options, visit this group at >> http://groups.google.com/group/CTJUG-Tech?hl=en >> For Cape Town Java User Group home page see http://www.ctjug.org.za/ >> For jobs see http://jobs.gamatam.com/This message is subject to >> Metropolitans disclaimer pertaining to electronic communications. To view >> the disclaimer please visit http://www.metropolitan.co.za/disclaimer.asp >> >> -- >> You received this message because you are subscribed to the Google Groups >> "CTJUG Tech" group. >> To post to this group, send email to [email protected] >> To unsubscribe from this group, send email to >> [email protected]<ctjug-tech%[email protected]> >> For more options, visit this group at >> http://groups.google.com/group/CTJUG-Tech?hl=en >> For Cape Town Java User Group home page see http://www.ctjug.org.za/ >> For jobs see http://jobs.gamatam.com/ > > > -- > You received this message because you are subscribed to the Google Groups > "CTJUG Tech" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<ctjug-tech%[email protected]> > For more options, visit this group at > http://groups.google.com/group/CTJUG-Tech?hl=en > For Cape Town Java User Group home page see http://www.ctjug.org.za/ > For jobs see http://jobs.gamatam.com/This message is subject to > Metropolitans disclaimer pertaining to electronic communications. To view > the disclaimer please visit http://www.metropolitan.co.za/disclaimer.asp > > -- > You received this message because you are subscribed to the Google Groups > "CTJUG Tech" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<ctjug-tech%[email protected]> > For more options, visit this group at > http://groups.google.com/group/CTJUG-Tech?hl=en > For Cape Town Java User Group home page see http://www.ctjug.org.za/ > For jobs see http://jobs.gamatam.com/ > -- You received this message because you are subscribed to the Google Groups "CTJUG Tech" 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/CTJUG-Tech?hl=en For Cape Town Java User Group home page see http://www.ctjug.org.za/ For jobs see http://jobs.gamatam.com/
