Your PlayN application must not be compiled with -XdisableClassMetadata

72 views
Skip to first unread message

daniel...@gmail.com

unread,
Jun 27, 2012, 8:44:41 PM6/27/12
to pl...@googlegroups.com
Hi everyone,

I am fairly new to PlayN and I have been playing around with the TriplePlay library. I have got a Javascript error coming up in my browser when I run the HTML5 version of the game:

Your PlayN application must not be compiled with -XdisableClassMetadata. It breaks TriplePlay stylesheets. 

Does anyone know how to remove that compiler flag? I imagine it is buried in a Maven script somewhere perhaps? I am using Netbeans 7.1.

Thanks!
Daniel

daniel...@gmail.com

unread,
Jun 27, 2012, 9:22:33 PM6/27/12
to pl...@googlegroups.com
Nevermind, I figured it out!

In the html project pom file you need to add a configuration section to gwt-maven-plugin

Does anyone know if this has any side effects? performance? stability? compatibility?

....
<plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>gwt-maven-plugin</artifactId>
        <configuration>
            <disableClassMetadata>false</disableClassMetadata>
        </configuration>
        <executions>
          <execution>
       .....

Philip Rogers

unread,
Jun 27, 2012, 9:28:05 PM6/27/12
to pl...@googlegroups.com
See this page for more info: http://code.google.com/p/google-web-toolkit/wiki/NoClassMetadataOptimization

This is a pretty minor optimization for most apps and most likely will have no effect on your game. Not having it will result in slightly larger codesize and some unobfuscated class names in the source.

Philip
Reply all
Reply to author
Forward
0 new messages