Don, Thanks for the quick response. Actually I came up with a small hack which is working for me, attached the diff.
I understand that running the server it doesn't make sense to re-use the
same folder. But for debugging the SWF9 runtime it would make it more
comfortable to use FlexBuilder for AS3 debugging (don't have to go into the
tmp folder and copy the files over into my Eclipse project).
With this hack I can set the folder through my $JAVA_OPTS
export JAVA_OPTS="-Das3tmpfolder=${HOME}/whatever/folder/i/like"
I only have to add some code to clear the folder I'm using with every
compile and I'm happy.
Cheers,
Raju
Am 25.05.2008 2:08 Uhr schrieb "Donald Anderson" unter <[EMAIL PROTECTED]>:
> 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: [EMAIL PROTECTED]
> www: http://www.ddanderson.com
>
>
>
>
SWF9External.diff
Description: Binary data
