Approved

The test case is below. I copied it to my home directory, which is external
to my LPS_HOME, and compiled it as an lzo. The pathnames for includes and
resources in the lzo look properly relativized to the search paths.

I'll attach this test case to the bug report.


<library>
  <!-- references lz/components library  -->

  <include href="/lz/button.lzx"/>
  <button onclick="Debug.info('click')">Click Me!</button>


  <class name="mybutton" extends="button">
    <handler name="onclick">
      Debug.info("clicked mybutton");
    </handler>
    <method name="foo">
      return 269;
    </method>
  </class>

  <mybutton onclick="Debug.info('instance click
handler')">mybutton</mybutton>



</library>

On Fri, Jul 2, 2010 at 4:19 PM, P T Withington <[email protected]> wrote:

> Change 20100702-ptw-S by [email protected] on 2010-07-02 16:14:44 EDT
>    in /Users/ptw/OpenLaszlo/trunk-2
>    for http://svn.openlaszlo.org/openlaszlo/trunk
>
> Summary: Use "unresolved" paths in lzo's
>
> Bugs Fixed:  LPP-9167 Figure out why some paths in lzo's are "wrong"
>
> Technical Reviewer: [email protected] (pending)
> QA Reviewer: [email protected] (pending)
>
> Details:
>
>    In adjustResourcePath, look for resources that were resolved
>    against the FileResolver "search path" (the components, fonts, and
>    LFC directories) and output such paths as relative to that search
>    path, so they can be re-resolved against an LPS that might not be
>    in the same relative location as the LPS that was used to compile
>    the lzo.
>
> Tests:
>
>    Henry is creating a test case he will verify against.
>
> Files:
> M
> WEB-INF/lps/server/src/org/openlaszlo/compiler/IntermediateWriter.java
>
> Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20100702-ptw-S.tar
>



-- 
Henry Minsky
Software Architect
[email protected]

Reply via email to