The --incremental feature tries to use the incremental compilation mode of
the Flex compiler. Unfortunately, that is only the second phase of the
compiler, and the first half of the compilation, the LZX preprocessor and
javascript->actionscript phase still takes about half the time, and does not
operate incrementally.

There is a slight speedup you might be able to get by keeping the Flex
compiler resident in memory; there is a customized version of the Flex
compiler shell (fcsh) that is bundled into the LPS distribution, which lets
you run the compiler repeatedly in the same JVM, from the command line.

Example usage




we have a modified version of the flex fcsh command line compiler, which can
invoke the lzc compiler.
When I recompile the app it seems to run the compilation much faster:

the first compile is done with the 'lzc' command, and subsequent recompiles
are done via the 'lcompile 1' command.

maybe you can try this to see if it works for you. The app will be a SOLO
(non proxied) ap.


Adobe Flex Compiler SHell (fcsh)
Version 4.5.0 build 0
Copyright (c) 2004-2007 Adobe Systems, Inc. All rights reserved.

... with OpenLaszlo lzc incremental compiler mode
       lcompile id           incremental LZX app compilation
       lzc arg1 arg2         invoke LZX compiler, takes same args as lzc
(fcsh)  lzc -g1 main.lzx
List of fcsh commands:
mxmlc arg1 arg2 ...      full compilation and optimization; return a target
id
compc arg1 arg2 ...      full SWC compilation
compile id               incremental compilation
clear [id]               clear target(s)
info [id]                display compile target info
quit                     quit
(fcsh) lzc -g1 main.lzx
calling lzc
Compiling: main.lzx to main.swf10.swf

globalcomponents/assetpermissionspanel/_AssetPermissionPanelHeader.lzx:7:67:
an attribute or method named 'bgcolor' already is defined on element class
lzc returned
/Users/hqm/openlaszlo/trunkd2/jade/client/webtop/walnut/main.swf10.swf
fcsh: Assigned 1 as the compile target id
Loading configuration file
/Users/hqm/openlaszlo/trunkd2/WEB-INF/frameworks/flex-config.xml
/var/folders/xh/xhmdrA41HCKjjiditeqN1k+++TI/-Tmp-/lzswf9/./build/main/app.swf
(3823053 bytes)
(fcsh) lcompile 1
Compiling: main.lzx to main.swf10.swf
globalcomponents/assetpermissionspanel/_AssetPermissionPanelHeader.lzx:7:80:
an attribute or method named 'bgcolor' already is defined on element class
Loading configuration file
/Users/hqm/openlaszlo/trunkd2/WEB-INF/frameworks/flex-config.xml
Recompile:
/private/var/folders/xh/xhmdrA41HCKjjiditeqN1k+++TI/-Tmp-/lzswf9/build/main/$lzc$
class__m2c7.as
Reason: The source file or one of the included files has been updated.
Recompile:
/private/var/folders/xh/xhmdrA41HCKjjiditeqN1k+++TI/-Tmp-/lzswf9/build/main/$lzc$
class__m2c4.as
Reason: The source file or one of the included files has been updated.
Recompile:
/private/var/folders/xh/xhmdrA41HCKjjiditeqN1k+++TI/-Tmp-/lzswf9/build/main/LzApplication.as
Reason: The source file or one of the included files has been updated.
Recompile:
/private/var/folders/xh/xhmdrA41HCKjjiditeqN1k+++TI/-Tmp-/lzswf9/build/main/$lzc$
class__m2c5.as
Reason: The source file or one of the included files has been updated.
Recompile:
/private/var/folders/xh/xhmdrA41HCKjjiditeqN1k+++TI/-Tmp-/lzswf9/build/main/$lzc$
class__m2c8.as
Reason: The source file or one of the included files has been updated.
Recompile:
/private/var/folders/xh/xhmdrA41HCKjjiditeqN1k+++TI/-Tmp-/lzswf9/build/main/$lzc$
class__m2c6.as
Reason: The source file or one of the included files has been updated.
Recompile:
/private/var/folders/xh/xhmdrA41HCKjjiditeqN1k+++TI/-Tmp-/lzswf9/build/main/$lzc$class__AssetPermissionPanelHeader.as
Reason: The source file or one of the included files has been updated.
Files changed: 7 Files affected: 0
/var/folders/xh/xhmdrA41HCKjjiditeqN1k+++TI/-Tmp-/lzswf9/./build/main/app.swf
(3822637 bytes)
copying
/var/folders/xh/xhmdrA41HCKjjiditeqN1k+++TI/-Tmp-/lzswf9/./build/main/app.swf
to /Users/hqm/openlaszlo/trunkd2/jade/client/webtop/walnut/main.swf10.swf
(fcsh)

-- 
Henry Minsky

Reply via email to