[Laszlo-dev] Re: [Laszlo-user] more lzc questions
Mika Göckel
mika.goeckel at gmx.de
Sat Nov 19 01:31:23 PST 2005
Oehm.... what about getting rid of the lzc exec call from the build file
in WEB-INF/lps/lfc and replace it with a direct call to the Class?
I changed it to
<target name="lzl" depends="chkUptoDate"
unless="${library}.notRequired" description="Build a .lzl library from
source">
<echo message="Compiling ${library}"/>
<echo message="arg: ${args} -o ${library}.lzl ${source}"/>
<java classpathref="lzcp" classname="org.openlaszlo.sc.Main">
<jvmarg value="-DLPS_HOME=${LPS_HOME}"/>
<arg line="${args} -o ${library}.lzl ${source}"/>
</java>
</target>
This avoids loading the jvm every time.
I didn't contribute the build.xml so far, because I hope that we switch
to ant-1.6.5 which will allow further improvements.
My full build.xml is attached (please be aware it's work in progress, so
it might not work out of the bix without minor fixing).
Cheers, Mika
Pablo Kang schrieb:
> You're probably taking a hit with the JVM loading every time you run lzc.
>
> pablo
>
> On Fri, 18 Nov 2005, Scott Evans wrote:
>
>> I'm in the midst of moving our build process to use lzc and produce a
>> standalone .swf file every time -- instead of doing the in-place type of
>> recompiles that you get through the OLS.
>>
>> But what I'm seeing so far is that rebuilds seem slower than they do
>> through a browser. *Something* is pegging the CPU for a while during
>> the
>> process, even if no files have changed. My source files get replaced on
>> the disk (we shuttle all our files off to a build location), but I keep
>> their timestamps, so as far as caching mechanisms go, the files should
>> look identical.
>>
>> My lzc invocation is:
>> lzc --mcache on --keepscriptcache --runtime=swf7 main.lzx
>>
>> Ideas?
>>
>>
>>
>> gse
>> _______________________________________________
>> Laszlo-user mailing list
>> Laszlo-user at openlaszlo.org
>> http://www.openlaszlo.org/mailman/listinfo/laszlo-user
>>
> _______________________________________________
> Laszlo-user mailing list
> Laszlo-user at openlaszlo.org
> http://www.openlaszlo.org/mailman/listinfo/laszlo-user
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: build.xml
Type: text/xml
Size: 8215 bytes
Desc: not available
Url : http://openlaszlo.org/pipermail/laszlo-dev/attachments/20051119/9f946bf6/build.xml
More information about the Laszlo-dev
mailing list