Nice!
Quite cool that you can unpack the .lzo with xslt. :)
On 2010-05-19, at 19:26, André Bargull wrote:
>
> On 5/20/2010 12:52 AM, P T Withington wrote:
>> On 2010-05-19, at 18:41, André Bargull wrote:
>>
>>> 3) validateReferenceDependencies() is only needed in contextmenu.js,
>>> because it's compiled with the -g option. Is this necessary at all? It
>>> seems to be more correct to remove the -g option when compiling
>>> contextmenu.lzx
>>
>> This actually points up a bug in the .lzo compiler:
>>
>> The reason I suggested using -g is to preserve the source line numbers in
>> the .lzo, so that when you compile a debug LFC you will get accurate
>> backtraces (to the LZX source, rather than to the compressed .lzs source).
>>
>> The bug is, if the .lzo compiler is inserting code that only applies in
>> $debug mode, it must wrap it in a `if ($debug) { ... }` so that it will be
>> correctly elided from a non-debug compile.
>>
>
> Sort of related: I've tweaked the build script in WEB-INF/lps/lfc to build
> the contextmenu.js file automatically. I'm going to send a proper review in
> the next days, but just in case it's useful for someone right now I've
> attached it to this mail, too.
> <build.xml>