[Laszlo-checkins] r12848 - openlaszlo/trunk/WEB-INF/lps/server/src/org/openlaszlo/compiler

hqm@openlaszlo.org hqm at openlaszlo.org
Fri Feb 13 11:56:26 PST 2009


Author: hqm
Date: 2009-02-13 11:56:25 -0800 (Fri, 13 Feb 2009)
New Revision: 12848

Modified:
   openlaszlo/trunk/WEB-INF/lps/server/src/org/openlaszlo/compiler/DHTMLWriter.java
Log:
Change 20090213-hqm-Y by hqm at badtzmaru-7.local on 2009-02-13 14:54:29 EST
    in /Users/hqm/openlaszlo/trunk6
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: include blank.gif in SOLO DHTML compilation

New Features:

Bugs Fixed:

Technical Reviewer: mdemmon
QA Reviewer: (pending)
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details:

+ forces the resource "lps/includes/blank.gif" to be included in DHTML 
resources directory when compiling with --copy-resources
    

Tests:

+ compile "lzc --copy-resources --runtime=dhtml demos/weather/weather.lzx "
 
+ see that lps/resources/lps/includes/blank.gif exists in weather app home dir




Modified: openlaszlo/trunk/WEB-INF/lps/server/src/org/openlaszlo/compiler/DHTMLWriter.java
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/server/src/org/openlaszlo/compiler/DHTMLWriter.java	2009-02-13 19:56:04 UTC (rev 12847)
+++ openlaszlo/trunk/WEB-INF/lps/server/src/org/openlaszlo/compiler/DHTMLWriter.java	2009-02-13 19:56:25 UTC (rev 12848)
@@ -384,6 +384,13 @@
             throw new IllegalStateException("DHTMLWriter.close() called twice");
         }
         
+        // special case for IE7, need to copy lps/includes/blank.gif to lps/resources/lps/includes/blank.gif
+        if (mEnv.getBooleanProperty(mEnv.COPY_RESOURCES_LOCAL)) {
+            File inputFile = new File(LPS.HOME() + "/lps/includes/blank.gif");
+            File dirfile = mEnv.getApplicationFile().getParentFile();
+            copyResourceFile(inputFile, dirfile, "lps/includes/blank.gif");
+        }
+
         addResourceDefs();
 
         boolean debug = mProperties.getProperty("debug", "false").equals("true");



More information about the Laszlo-checkins mailing list