Ok...
I did hacked the code to force DevMode to write "pretty" output,
following is the diff of a "DemoApp.nocache.js" generated by DevMode and
one compiled with 2 permutations (for 'gecko1_8' and 'safari'):
194,201d193
< function unflattenKeylistIntoAnswers(propValArray, value){
< var answer = answers;
< for (var i = 0, n = propValArray.length - 1; i < n; ++i) {
< answer = answer[propValArray[i]] || (answer[propValArray[i]] = []);
< }
< answer[propValArray[n]] = value;
< }
<
302,304c294,295
< unflattenKeylistIntoAnswers(['gecko1_8'],
'797FC065259EE0BC34B64DCEEAB32816');
< unflattenKeylistIntoAnswers(['safari'],
'983F7F7FBB718A8A007A6EC2C16D2079');
< strongName = answers[computePropValue('user.agent')];
---
> alert("GWT module 'DemoApp' may need to be (re)compiled");
> return;
Now I have a more clear idea on what it happen under the hood.
Bye,
Cristiano
2013/9/23 Cristiano <[email protected]>
> Hi,
> sorry if I open back an old discussion,
> I have a question for Thomas:
>
> do the *.nocache.js generated by DevMode is the same as the one generated
> by the compiler?
> The compiler in facts honors the -style options also for the *.nocache.js
> and generate different output depending on the -style value.
>
> And what does change from *.nocache.js between different applications if
> it does not contains anything related to my java code?
> Is it the same in any application?
>
> Thank you,
>
> Cristiano
>
>
> Il giorno mercoledì 21 dicembre 2011 11:42:14 UTC+1, hallmit ha scritto:
>>
>> Many thanks Thomas for your clear explanation...You're right, in
>> development mode the GWT-JVM is actually executing the application
>> code as compiled Java bytecode, as described at GWT Doc [1] :), and
>> no JS is generated. So, pretty mode for JS generation doesn't make
>> sense here.
>>
>> Hallmit
>>
>> [1] http://code.google.com/intl/**fr-FR/webtoolkit/doc/latest/**
>> DevGuideCompilingAndDebugging.**html#DevGuideDevMode<http://code.google.com/intl/fr-FR/webtoolkit/doc/latest/DevGuideCompilingAndDebugging.html#DevGuideDevMode>
>
> --
> 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 [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/groups/opt_out.
>
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.