http://www.openlaszlo.org/jira/browse/LPP-3314
On Dec 13, 2006, at 7:04 PM, P T Withington wrote:
Please file a bug on this, because, up until now, you could run lzc
wherever you liked.
On 2006-12-13, at 18:47 EST, Phillip George Apley wrote:
Currently, to run lzc one must do so from a current directory that
matches the value of LPS_HOME, and LPS_HOME
must be set to the correct value for the build.
Say the application to be compiled is $LPS_HOME/laszlo-explorer/
basics/mediatst.lzx
To compile it correctly one would set the current directory first:
cd $LPS_HOME;
and then compile using
lzc --script --runtime=dhtml laszlo-explorer/basics/mediatst.lzx;
Let's say the file $LPS_HOME/laszlo-explorer/basics/mediatst.lzx
wants to reference the file
$LPS_HOME/laszlo-explorer/basics/assets/background.jpg. It might
contain the following reference.
<canvas>
<view resource="assets/background.jpg"/>
</canvas>
Running LZC from other than LPS_HOME will result in a file not
found error.
It is probably preferable to be able to run LZC from a random
directory and compile the files in that directory, in this example
($LPS_HOME/laszlo-explorer/basics), without needing to change
either the code in mediatst.lzx or the location of any of the files.
While it may be desirable to change LZC so it can compile the
applications in any current directory, this is not for B1. If we
want to do that a new bug should be filed for it.
In any case, for B1 this needs to be clearly documented.
Phillip G. Apley
Senior Software Engineer
Platform Team
Laszlo Systems, Inc.
[EMAIL PROTECTED]
[EMAIL PROTECTED]
maynard: 978-298-5210
allston: 617-787-2831
cell: 617-283-1717
skype: phillipapley
aim: phillipapley
jabber: [EMAIL PROTECTED]
irc: [EMAIL PROTECTED]
icq: 258643767