Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Don't compile for the MAC and IE* when developing.

19 views
Skip to first unread message

skippy

unread,
Nov 29, 2011, 2:49:14 PM11/29/11
to Google Web Toolkit
When developing locally, I usually only test with one browser. Before
moving to regression testing we test multiple browsers just for the
fun of it.

My question is, is there a way to easily turn off the compiling for
the MAC and Fire Fox when not testing in that space?

I have implemented the localWorker compiler option, but our
application is starting to grow and compile times are on the rise.

Thanks

Andreas Horst

unread,
Nov 29, 2011, 3:32:02 PM11/29/11
to google-we...@googlegroups.com
Use a working module. That's a very easy way to do this.

2011/11/29 skippy <al.l...@fisglobal.com>

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

Jens

unread,
Nov 29, 2011, 3:51:24 PM11/29/11
to google-we...@googlegroups.com
You can create GWT modules for development/testing for each browser/rendering engine.

For example:

App.gwt.xml //your main app module ready for production
DevApp.gwt.xml //inherits App.gwt.xml but enables logging for development
DevAppSafari.gwt.xml //inherits DevApp.gwt.xml and sets user.agent property to safari (<set-property name="user.agent" value="safari />). This tells the GWT compiler to only compile for Safari/Chrome ( = WebKit browsers)
DevAppGecko.gwt.xml // same as DevAppSafari but with user.agent = gecko1_8 for Firefox.
....
....

Works pretty well. Just make sure to add the "rename-to" attribute from App.gwt.xml to all Dev*.gwt.xml modules so it compiles to the same directory. If your App.gwt.xml does not have such an attribute you also need to add it to all Dev*.gwt.xml modules and set it to the default name of your main app.

You can find a small paragraph about it in http://code.google.com/intl/de-DE/webtoolkit/doc/latest/DevGuideOrganizingProjects.html#DevGuideModuleXml . Take a look at "Renaming modules".

-- J.

skippy

unread,
Nov 29, 2011, 5:18:57 PM11/29/11
to Google Web Toolkit
Thanks, I read that but did not get it at first.

What is the user.agent for IE?

> inhttp://code.google.com/intl/de-DE/webtoolkit/doc/latest/DevGuideOrgan...

Jens

unread,
Nov 29, 2011, 5:26:48 PM11/29/11
to google-we...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages