That is strange. All I can tell you that everytime right next to my source file "index2.lzx" a file named "index2.lzx.swf10.swf" appears in addition to "index2.lzx.swf" that appears in the output directory.

Here are my commands (nothing altered)

> cd /opt/dev/+apps/exodus/#work/laszlo
> export LPS_HOME=/opt/dev/warehouse/laszlo/openlaszlo-5.0.x-servlet
> /opt/dev/warehouse/laszlo/openlaszlo-5.0.x-servlet/WEB-INF/lps/server/bin/lzc -g2 --runtime=swf10 --dir /opt/dev/+apps/exodus/#work/laszlo --output index2.lzx.swf /opt/dev/+apps/exodus/src/laszlo/index2.lzx

I am not using any lzo libraries. Just a simple (although big) compilation.

- rami


On 09/09/2011 07:39 PM, Donald Anderson wrote:
Hi Rami,

Nope, my working directory is the source directory. I just tried again both ways. In TEST 1, working directory is /Users/dda/laszlo/src/svn/openlaszlo/trunk-a/test and that is the same directory that both sources (LPP-10064.lzx LPP-10064b.lzx) are.

$ ###### TEST 1 ########
$ pwd
/Users/dda/laszlo/src/svn/openlaszlo/trunk-a/test
$ ls -l LPP-10064.lzx
-rw-r--r--  1 dda  staff  144 Sep  2 11:41 LPP-10064.lzx
$ mkdir stuff
$ lzc -c --runtime=swf10,dhtml --dir ./stuff --output z.lzo LPP-10064.lzx
Compiling: LPP-10064.lzx to null
$ ls -l stuff
total 8
-rw-r--r--  1 dda  staff  1219 Sep  9 12:28 z.lzo
$ lzc --runtime=swf10 --dir ./stuff --output z.swf LPP-10064b.lzx
Compiling: LPP-10064b.lzx to z.swf
compiler output is Loading configuration file /Users/clients/laszlo/src/svn/openlaszlo/trunk-a/WEB-INF/frameworks/flex-config.xml /private/var/folders/ZT/ZTXs92LlFNeA1M6v8k3KhU+++TI/-Tmp-/lzswf9/build/LPP-10064b/app.swf (287841 bytes)

$ ls -l stuff
total 576
-rw-r--r--  1 dda  staff    1219 Sep  9 12:28 z.lzo
-rw-r--r--  1 dda  staff  287841 Sep  9 12:29 z.swf

Just to see, I tried it the other way, with working directory the same as the output.

$ ###### TEST 2 ########
$ cd stuff
$ rm *
$ lzc -c --runtime=swf10,dhtml --dir .
$ pwd
/Users/dda/laszlo/src/svn/openlaszlo/trunk-a/test/stuff
$ lzc -c --runtime=swf10,dhtml --dir . --output z.lzo ../LPP-10064.lzx
Compiling: ../LPP-10064.lzx to null
$ ls -l
total 8
-rw-r--r--  1 dda  staff  1219 Sep  9 12:30 z.lzo
$ lzc --runtime=swf10 --dir . --output z.swf ../LPP-10064b.lzx
Compiling: ../LPP-10064b.lzx to z.swf
compiler output is Loading configuration file /Users/clients/laszlo/src/svn/openlaszlo/trunk-a/WEB-INF/frameworks/flex-config.xml /private/var/folders/ZT/ZTXs92LlFNeA1M6v8k3KhU+++TI/-Tmp-/build/LPP-10064b/app.swf (287842 bytes)

$ ls -l
total 576
-rw-r--r--  1 dda  staff    1219 Sep  9 12:30 z.lzo
-rw-r--r--  1 dda  staff  287842 Sep  9 12:32 z.swf
$

No trouble either way. Can you try my test case on your system and see if it works for you? (Sources are still quoted below) Or send me yours with the exact sequence of steps that shows the failure?

Thanks!

- Don

On Sep 5, 2011, at 4:07 AM, Rami Ojares / AMG wrote:

Hi Donald,

Could you try your test case so that you current working directory is in the source directory.
Now it seems to be in the destination directory.
I think that might explain it.

- rami

On 09/02/2011 08:03 PM, Donald Anderson wrote:
Hello Rami,

I'm trying to track this down and am unable to reproduce the problem.
Here's what I do:

  rm -rf stuff
  mkdir stuff
  here=`pwd`
lzc -c --runtime=swf10,dhtml --dir $here/stuff --output z.lzo $here/LPP-10064.lzx lzc --runtime=swf10 --dir $here/stuff --output z.swf $here/LPP-10064b.lzx

My test files are simple:

LPP-10064.lzx:
<library>
<class name="class1">
<view bgcolor="0xAA00FF" width="100" height="30" />
</class>
</library>

LPP-10064b.lzx:
<canvas>
<include href="LPP-10064.lzx"/>
<simplelayout/>
<class1/>
<class1/>
</canvas>

I don't see any extra files in the source directory. Can you send me a test case, or adjust mine to show the failure?
Thanks!

- Don

On Aug 30, 2011, at 10:17 AM, Rami Ojares / AMG wrote:

One strange thing I have noticed is that when I compile some lzx file
say: /a/b/c.lzx and define as
--dir /x/y --output z.swf
I do get /x/y/z.swf but in addition to that I also get
/a/b/c.lzx.swf10.swf

And that messes my source code.
Why is that generated?
Isn't the temp folder enough?

- rami


--

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

voice: 617-306-2057
email: [email protected] <mailto:[email protected]>
www: http://www.ddanderson.com <http://www.ddanderson.com/>
blog: http://libdb.wordpress.com <http://libdb.wordpress.com/>








--

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

voice: 617-306-2057
email: [email protected] <mailto:[email protected]>
www: http://www.ddanderson.com <http://www.ddanderson.com/>
blog: http://libdb.wordpress.com






Reply via email to