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 <[email protected]> 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
[email protected]

Reply via email to