For the change I sent out for incremental compilation , here's how to use it
(it's command line only for now)

Where you would normally run "lzc --runtime=swf10 yourapp.lzx", instead you
use the modified "fcsh"
shell, as follows. It supports a "lzc" command which has the same old
arguments:

run 'fcsh' shell script  (lives in WEB-INF/bin)

FLEX_HOME=../../WEB-INF/bin/..
Adobe Flex Compiler SHell (fcsh)
Version 4.0.0 build 6898
Copyright (c) 2004-2007 Adobe Systems, Inc. All rights reserved.


(fcsh) lzc --runtime=swf9 app.lzx
calling lzc
Compiling: app.lzx to app.swf9.swf
swf9 compiler options changes, cleaning working dir
Executing compiler: (cd
/var/folders/xh/xhmdrA41HCKjjiditeqN1k+++TI/-Tmp-/lzswf9/./build/app;
/Users/hqm/openlaszlo/trunk/WEB-INF/bin/mxmlc
-load-config=/Users/hqm/openlaszlo/trunk/WEB-INF/frameworks/flex-config.xml
-compiler.show-actionscript-warnings=false
-compiler.source-path+=/var/folders/xh/xhmdrA41HCKjjiditeqN1k+++TI/-Tmp-/lzswf9/./build/app
-compiler.headless-server=true -compiler.fonts.advanced-anti-aliasing=true
-output
/var/folders/xh/xhmdrA41HCKjjiditeqN1k+++TI/-Tmp-/lzswf9/./build/app/app.swf
-default-size 800 600
-compiler.library-path+=/Users/hqm/openlaszlo/trunk/lps/includes/lfc/LFC9.swc
-compiler.library-path+=/Users/hqm/openlaszlo/trunk/WEB-INF/flexlib
-includes \$debug \$profile \$backtrace \$runtime \$swf7 \$swf8 \$as2 \$swf9
\$swf10 \$as3 \$dhtml \$j2me \$svg \$js1 -target-player=9.0.0
-compiler.incremental=true -frame two LzSpriteApplication
-file-specs=/var/folders/xh/xhmdrA41HCKjjiditeqN1k+++TI/-Tmp-/lzswf9/./build/app/LzPreloader.as)
option EMIT_AS3_ONLY set, returning without invoking flex compiler, call
'lcompile #' to compile as3
lzc returned /Users/hqm/openlaszlo/trunk/demos/lzpix/app.swf9.swf
fcsh: Assigned 1 as the compile target id
Loading configuration file
/Users/hqm/openlaszlo/trunk/WEB-INF/frameworks/flex-config.xml
/var/folders/xh/xhmdrA41HCKjjiditeqN1k+++TI/-Tmp-/lzswf9/./build/app/app.swf
(403317 bytes)
(fcsh)

then if you modify one or more .lzx files, you recompile incrementally by
saying 'lcompile 1' (or whatever the ID number
assigned by fcsh in the previous command)

touch classes/pivotlayout.lzx

(fcsh)* lcompile 1*
lcompile, calling lzc with args:
--lzxonly
--incremental
--runtime=swf9
app.lzx
Compiling: app.lzx to app.swf9.swf
Executing compiler: (cd
/var/folders/xh/xhmdrA41HCKjjiditeqN1k+++TI/-Tmp-/lzswf9/./build/app;
/Users/hqm/openlaszlo/trunk/WEB-INF/bin/mxmlc
-load-config=/Users/hqm/openlaszlo/trunk/WEB-INF/frameworks/flex-config.xml
-compiler.show-actionscript-warnings=false
-compiler.source-path+=/var/folders/xh/xhmdrA41HCKjjiditeqN1k+++TI/-Tmp-/lzswf9/./build/app
-compiler.headless-server=true -compiler.fonts.advanced-anti-aliasing=true
-output
/var/folders/xh/xhmdrA41HCKjjiditeqN1k+++TI/-Tmp-/lzswf9/./build/app/app.swf
-default-size 800 600
-compiler.library-path+=/Users/hqm/openlaszlo/trunk/lps/includes/lfc/LFC9.swc
-compiler.library-path+=/Users/hqm/openlaszlo/trunk/WEB-INF/flexlib
-includes \$debug \$profile \$backtrace \$runtime \$swf7 \$swf8 \$as2 \$swf9
\$swf10 \$as3 \$dhtml \$j2me \$svg \$js1 -target-player=9.0.0
-compiler.incremental=true -frame two LzSpriteApplication
-file-specs=/var/folders/xh/xhmdrA41HCKjjiditeqN1k+++TI/-Tmp-/lzswf9/./build/app/LzPreloader.as)
option EMIT_AS3_ONLY set, returning without invoking flex compiler, call
'lcompile #' to compile as3
Loading configuration file
/Users/hqm/openlaszlo/trunk/WEB-INF/frameworks/flex-config.xml
Recompile:
/private/var/folders/xh/xhmdrA41HCKjjiditeqN1k+++TI/-Tmp-/lzswf9/build/app/$lzc$
class_pivotlayout.as
Reason: The source file or one of the included files has been updated.
Files changed: 1 Files affected: 0
/var/folders/xh/xhmdrA41HCKjjiditeqN1k+++TI/-Tmp-/lzswf9/./build/app/app.swf
(403318 bytes)
renaming
/var/folders/xh/xhmdrA41HCKjjiditeqN1k+++TI/-Tmp-/lzswf9/./build/app/app.swf
to /Users/hqm/openlaszlo/trunk/demos/lzpix/app.swf9.swf
(fcsh)


you can keep modifying files and calling "lcompile 1" to recompile
incrementally


-- 
Henry Minsky
Software Architect
[email protected]

Reply via email to