[Laszlo-dev] Do you know how in the swf9 compiler...
Henry Minsky
hminsky at laszlosystems.com
Mon Nov 2 07:34:01 PST 2009
There was some hack for that, I remember setting up these constants to pass
to the
script compiler
props.put(org.openlaszlo.sc.Compiler.SWF9_APPLICATION_PREAMBLE,
makeApplicationPreamble());
props.put(org.openlaszlo.sc.Compiler.SWF9_APP_CLASSNAME,
MAIN_APP_CLASSNAME);
props.put(org.openlaszlo.sc.Compiler.SWF9_WRAPPER_CLASSNAME,
EXEC_APP_CLASSNAME);
There's some code in the script compiler that sets and refers to
config.mainClassName, which somehow the parsetreeprinter decides to put
things into, but I'm not sure how.
public List makeTranslationUnits(SimpleNode translatedNode, boolean
compress, boolean obfuscate)
{
...
...
config.mainClassName = (String)
options.get(Compiler.SWF9_APP_CLASSNAME);
//System.err.println("mainClassName = "+config.mainClassName);
On Mon, Nov 2, 2009 at 7:37 AM, P T Withington <ptw at pobox.com> wrote:
> It diverts the top-level statements from processing and inserts them into
> the main class? I can't seem to follow the logic.
>
--
Henry Minsky
Software Architect
hminsky at laszlosystems.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20091102/592e897c/attachment.html
More information about the Laszlo-dev
mailing list