-XdisableClassMetadata cut off from the compiled code all class metadata as
SomeInstance.getClass().getName(); -> this won't be available
*But I am not sure that it will completely remove the classes names from the
compiled code, cause it also uses them on rpc calls
*
2010/7/7 moorsu <[email protected]>
> Hi,
>
> I tried to use the compiler flag *-XdisableClassMetadata* to replace the
> classnames
> as suggested by Olivier. But the classnames still appear in the
> *.cache.html files.
>
> I tried both in maven POM.xml also in the Google Eclipse Plugin.
>
> My POM.xml code snippet like this
>
> <plugin>
> <groupId>org.codehaus.mojo</groupId>
> <artifactId>gwt-maven-plugin</artifactId>
> <version>${gwt-maven-plugin.version}</version>
> <configuration>
> <disableCastChecking>true</disableCastChecking>
> <disableClassMetadata>true</disableClassMetadata>
> <resourcesOnPath>false</resourcesOnPath>
> <runTarget>src/main/webapp/index.html</runTarget>
> <webappDirectory>src/main/webapp</webappDirectory>
> <style>OBF</style>
> <extraJvmArgs>-Xmx2048m -Xss4024k</extraJvmArgs>
> </configuration>
> <executions>
> <execution>
> <goals>
> <goal>compile</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
>
> What is the right way to achieve this?
>
> thanks
> moorsu.
>
>
>
> On Wed, Jun 23, 2010 at 8:50 PM, Olivier Monaco <[email protected]>wrote:
>
>> Hi,
>>
>> If your problem comes from class name included in the JavaScript files
>> (and affected to some properties of JavaScript object), you can try to
>> use the following optimization:
>>
>>
>> http://code.google.com/p/google-web-toolkit/wiki/NoClassMetadataOptimization
>>
>> Olivier
>>
>> On Jun 22, 3:55 pm, moorsu <[email protected]> wrote:
>> > Hi,
>> >
>> > Would it be possible to obfuscate the fully qualified class name which
>> > is
>> > visible at the browser if you use firebug?.
>> >
>> > I would like to see it as a.b.c.d instead
>> > com.mycompany.myproduct.mypackage.MyClassName.
>> > Also I do not use the same domain object as model but use Lists and
>> > Maps to send data to
>> > browser.
>> >
>> > thanks!
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<google-web-toolkit%[email protected]>
>> .
>> 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 [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-web-toolkit%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
--
http://gwtupdates.blogspot.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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.