Friday, May 28, 2010

Re: Disable/Enable CSS obfuscating in gwt.xml ?

Hi,

That sounds nice, I shall have a closer look at it.
It should be nice if it could be more fine-grained, as it normally concern a few styles that should be annotated with @external for testing.

Ed


On Fri, May 28, 2010 at 3:29 PM, Chris Lercher <cl_for_mailing@gmx.net> wrote:
It can be done:

com.gwt.resources.Resources.gwt.xml defines the "CssResource.style"
property. Looking into
com.google.gwt.resources.rg.CssResourceGenerator.init() shows, that we
can set the property to "pretty" - so in your .gwt.xml file you would
write:

<set-configuration-property name="CssResource.style" value="pretty"/>

The resulting name is still complex (because it has to be unique
across multiple CSS resources), but at least it contains the original
class name at the end of the name - I'm not sure, if you can use this
in your situation?

Chris


On May 27, 9:01 pm, Ed <post2edb...@gmail.com> wrote:
> How is it possible to disable/enable CSS obfuscating in the gwt.xml
> file ?
>
> This should be very handy as I have many css styles that aren't
> allowed to be obfuscated during testing as they are used by Selenium.
> At the moment I disable obfuscating with the annotation @external, but
> that is fixed. I would love if this would be adjustable in the gwt.xml
> file.

--
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.


--
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