[Laszlo-dev] Is the temp folder lzswf9 configurable?

Donald Anderson dda at ddanderson.com
Sat May 24 17:08:01 PDT 2008


Raju,

There isn't any way to do this short of changing the code.
You can change the Java temp folder via modifying the property
java.io.tmpdir, but I know that's not what you're asking.
You want to get rid of the variable part of the name, right?

As long as you realize that setting a fixed temporary name
will give strange behavior when running under a server:
imagine two simultaneous requests trying to do compilations using the
same directory.  In your case, you need to make sure you are
not running multiple lzc's at the same time to the same folder.

- Don

On May 24, 2008, at 7:22 PM, Raju Bitter wrote:

> Hi all,
>
> I'm playing around with the SWF9 runtime. Is there an easy way to  
> change the
> location where the generated AS3 files are stored? Right now it's  
> the Java
> temp folder and then subfolder lzswf9/{generatedFolderName}.
> The relevant Java file is
> http://svn.openlaszlo.org/openlaszlo/trunk/WEB-INF/lps/server/src/org/openla
> szlo/sc/SWF9External.java
>
> For testing it sometimes would be good to re-use to be able to  
> configure the
> folder name. What I'd like to do is to run the lzc command out of an  
> Ant
> script and be able to generate the AS source into my src folder  
> within the
> project.
>
> I'll probably do a change to the code locally to be able to pass a  
> property
> into the server using the -D option for Java, e.g.
> -Das3tmpfolder={someFolderName}
>
> Thanks,
> Raju
>
>


--

Don Anderson
Java/C/C++, Berkeley DB, systems consultant

voice: 617-547-7881
email: dda at ddanderson.com
www: http://www.ddanderson.com






More information about the Laszlo-dev mailing list