Let me explain my use case.

I develop componentized laszlo applications.
Previously I put the servlet only package in my tomcat webapp folder and made the needed web.xml modification. Also I copied all the lzx files under the webapp and let laszlo servlet take care of compilation and well pretty much everything.

This deployment model became too cumbersome as my application grew.
When developing and debugging it is very common to make a small change and see how it affects the application. So I copied all changed files under webapp and requested the application from the browser triggering the compilation
and new error messages in the laszlo debugger.

This deployment model became so insanely slow that I thought something needs to be done.

So I put all my reusable components into a separate project and wanted to compile and debug it separately first. Once it was passing all my tests I thought that now I only need to link my application against it (like I link it agains lfc and laszlo components).

Then I would compile my application to swf file.
And I quess I could get rid of the laszlo servlet at the webserver because the whole of the application is contained
in the swf file, right? It is the so called solo model, correct?

So should I use the source package instead for using the lzc compiler?

Here are the steps I don't currently understand and would need help with.

I am able to produce and lzo archive from my library that contains 2 files:
- lzo file (can be opened with text editor and contains laszlo javascript/tags ready to be compiled to the target runtime)
- swc file (library compiled flash binary library)

Then I want to compile my application.
Q1: How do I link against the lzo library?
The lzo file seems to contain library references with relative paths, so is it not self-contained? Do I need to keep the lzo file in the place to which I generated it so these relative paths do not get stale?
Do I link to this lzo file by saying:
<library href="/fill/path/to/file.lzo"/>
And then laszlo knows to look for the lzo and swc file(s) within the archive?

Q2: Is laszlo able to utilize the swc file somehow in the compilation?

Q3: How do I use the --lzolibs option?
It says that it is used only together with --compile option so - if I understand correctly - only when compiling lzo libraries, right?

- Rami Ojares
On 08/30/2011 02:27 PM, P T Withington wrote:
WEB-INF/lps/lfc is the LFC source directory, so not distributed with the 
servlet.  If this file is needed by the compiler to compile user programs in 
the servlet, the file should be moved.  Perhaps to lps/includes/?

On 2011-08-30, at 06:46, Rami Ojares / AMG wrote:

That worked.
A new version of packages was released this morning.
And the Servlet package still seemed to miss the lfc directory.
Is it some sort of automatic mechanism that publishes these packages?

- rami

On 08/29/2011 05:55 PM, Henry Minsky wrote:
You could probably just copy that from the source distro.

On Mon, Aug 29, 2011 at 10:49 AM, Rami Ojares / 
AMG<[email protected]<mailto:[email protected]>>  wrote:

    Just re-downladed the servlet package and was able to confirm that
    it is missing WEB-INF/lps/lfc directory.

    - rami


    On 08/29/2011 05:44 PM, Henry Minsky wrote:
    I am running with a build from source. Could be this directory
    did not make it into the servlet release?

    On Mon, Aug 29, 2011 at 10:42 AM, Rami Ojares / AMG
    <[email protected]<mailto:[email protected]>>  wrote:

        Directory WEB-INF/lps/lfc does not even exist?!?
        I am sure I did not delete it.
        Maybe I should download
        http://download.openlaszlo.org/nightly/trunk/19403
        again and see if the folder exists in there...


        On 08/29/2011 05:36 PM, Henry Minsky wrote:
        I don't know the problem, that works on my Mac. What is in
        that 'WEB-INF/lps/lfc/compiler/platform/flex'directory on
        your machine?



        On Mon, Aug 29, 2011 at 10:16 AM, Rami Ojares / AMG
        <[email protected]<mailto:[email protected]>>  wrote:

            When running the following command

            lzc -c -a --runtime=swf10 --dir someDir --output
            filename.lzo my/library.lzx

            I get the following:

            Compiling: my/library.lzx to null
            compiler output is Loading configuration
            somepath/openlaszlo-5.0.x-servlet/WEB-INF/frameworks/flex-config.xml
            Adobe Compc (Flex Component Compiler)
            Version 4.5.0 build 0
            Copyright (c) 2004-2007 Adobe Systems, Inc. All rights
            reserved.
            Compilation errors occurred:
            org.openlaszlo.sc
            <http://org.openlaszlo.sc>.CompilerError: tunit/line
            unknown: , in line: command line: Error: unable to open
            
'somepath/openlaszlo-5.0.x-servlet/WEB-INF/lps/lfc/compiler/platform/flex'
            Use 'compc -help' for information about using the
            command line.

            What could be the problem?

            - Rami Ojares
            Ps. Muchas gracias for the prompt replies for my
            previous query :-)




        --         Henry Minsky






    --     Henry Minsky






--
Henry Minsky




Reply via email to