Tuesday, September 30, 2014

Re: Logging properties and classes

[INFO] --- gwt-maven-plugin:2.7.0-SNAPSHOT:compile (default) @ xxxx ---
[INFO] auto discovered modules 
[INFO] Loading inherited module 'xxxxx'
[INFO]    Loading inherited module 'org.jboss.errai.common.ErraiCommon'
[INFO]       Loading inherited module 'org.jboss.errai.common.Logging'
[INFO]          [ERROR] Line 7: Property 'gwt.logging.popupHandler' not found

As you can see the property is not defined, I think that 2.7 should be retro-compatible.

The equivalent to gwt.logging.popupHandler is now gwt.logging.hasWidgetsHandler. I think for the time being you could workaround your issue by using something like the following (untested) in your gwt.xml file:

<define-property name="gwt.logging.popupHandler" values="ENABLED, DISABLED"/>
<set-property name="gwt.logging.popupHandler" value="DISABLED" /> <!-- default -->

<set-property name="gwt.logging.popupHandler" value="ENABLED">
  <when-property-is name="gwt.logging.hasWidgetsHandler" value="ENABLED" />

That way you could change your own gwt.xml files to use gwt.logging.hasWidgetsHandler if needed because that is what GWT will support in the future. However you still have the legacy gwt.logging.popupHandler property defined for libraries that haven't been updated yet.

Maybe GWT 2.7 could add such a snippet in its own gwt.xml file but in GWT 3.0 it will probably be removed again.

-- J.

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment