Compiling only for IE and FireFox

17 views
Skip to first unread message

h.v.maanen

unread,
Oct 23, 2007, 5:15:33 PM10/23/07
to Google Web Toolkit, maa...@microbais.nl
With the set-property tag in de .gwt.xml file it is posible to
compile only for one browser.

The next example will only produce output for Internet Explorer.

<set-property name="user.agent" values="ie6"/>

Is there an option to compile only for two browsers. We only need
Internet Explorer and Firefox.
We want this for speeding up the compiler.

Thanx
HvM

Ben Vitale

unread,
Nov 14, 2007, 8:43:23 AM11/14/07
to Google Web Toolkit
On Oct 23, 4:15 pm, "h.v.maanen" <maan...@gmail.com> wrote:
> Is there an option tocompileonly for two browsers. We only need

> Internet Explorer and Firefox.
> We want this for speeding up the compiler.

Did you ever figure this out? I'd prefer to only do IE and Firefox, as
well.

Thanks
Ben

charlie...@gmail.com

unread,
Nov 14, 2007, 10:00:30 AM11/14/07
to Google Web Toolkit
I have done the <set-property> thing when I need only one browser,
yes, that works fine. If you need two though, it's a bit uglier, you
then need to redefine the property, rather than set it.

To do that you can include your own version of com/google/gwt/user/
UserAgent.gwt.xml ( http://google-web-toolkit.googlecode.com/svn/trunk/user/src/com/google/gwt/user/UserAgent.gwt.xml)
and change only this line:

<define-property name="user.agent"
values="ie6,gecko,gecko1_8,safari,opera"/>

This works fine, but like I said is a bit more cumbersome since you
have to include your own com/google/ directory and reproduce the whole
file.

I haven't found another better way, if there is one I would sure like
to know what it is.

h.v.maanen

unread,
Nov 16, 2007, 4:12:19 PM11/16/07
to Google Web Toolkit
Hi Charlie,
Is it possible to make just an own version of the UserAgent.gwt.xml
file. And make just that file available in the environment?
Or is it also needed to make an new version of gwt-user.jar with that
file?

HvM

On 14 nov, 16:00, "charlie.coll...@gmail.com"
<charlie.coll...@gmail.com> wrote:
> I have done the <set-property> thing when I need only one browser,
> yes, that works fine. If you need two though, it's a bit uglier, you
> then need to redefine the property, rather than set it.
>
> To do that you can include your own version of com/google/gwt/user/
> UserAgent.gwt.xml (http://google-web-toolkit.googlecode.com/svn/trunk/user/src/com/googl...)

Charlie Collins

unread,
Nov 17, 2007, 10:32:05 AM11/17/07
to Google Web Toolkit
You dont need the entire JAR, just that one file in the classpath
works fine.

h.v.maanen

unread,
Nov 17, 2007, 2:58:13 PM11/17/07
to Google Web Toolkit
Thanx,
HvM
Reply all
Reply to author
Forward
0 new messages