%@ page contentType="text/html" %> <%@ page import="java.net.*" %> <%@ page import="java.util.*" %> <%@ page import="java.util.regex.*" %> <%@ page import="java.util.zip.*" %> <%@ page import="java.io.*" %> <%@ page import="java.text.SimpleDateFormat" %> <%@ page import="org.openlaszlo.utils.FileUtils.*" %>
Explanation: The SOLO deployment tool creates an archive of all files, recursively, starting in the directory that contains the application source file. If the application source file is in the servlet root container, this tool will create a zip that contains all the files inside the root directory. This directory contains the entire OpenLaszlo binary distribution, so this is almost certainly not what you want. <% return; } wrapperUrl = new URL(new URL(baseUrl), appUrl + "?lzt=html-object&lzproxied=false&lzr="+appRuntime); lzhistUrl = new URL(new URL(baseUrl), appUrl + "?lzt=html&lzproxied=false&lzr="+appRuntime); URL swfUrl = new URL(new URL(baseUrl), appUrl + "?lzr="+appRuntime+"&lzproxied=false"); // Grab a copy of the html-object wrapper String str; BufferedReader in = new BufferedReader(new InputStreamReader(wrapperUrl.openStream())); while ((str = in.readLine()) != null) { wrapperbuf.append(str+"\n"); } in.close(); // load a copy of the lzhistory HTML wrapper in = new BufferedReader(new InputStreamReader(lzhistUrl.openStream())); while ((str = in.readLine()) != null) { lzhistbuf.append(str+"\n"); } in.close(); // Load a copy of the app url , causing the compiler to run in = new BufferedReader(new InputStreamReader(swfUrl.openStream())); while ((str = in.readLine()) != null) { } in.close(); lzhistwrapper = lzhistbuf.toString(); // We need to adjust the lzhistory wrapper, to make the path to lps/includes/embed.js // be relative rather than absolute. // remove the servlet prefix and leading slash lzhistwrapper = lzhistwrapper.replaceAll(request.getContextPath()+"/", ""); lzhistwrapper = lzhistwrapper.replaceAll(request.getContextPath(), ""); lzhistwrapper = lzhistwrapper.replaceAll("[.]lzx[?]lzt=swf", ".lzx."+appRuntime+".swf?"); } catch (MalformedURLException e) { %>
| This wizard will generate a zip file containing all the resources you need to deploy a serverless (SOLO) application. For deployments which do not require browser the Javscript browser integration support files, it will also generate some simple HTML wrappers which can be cut and pasted into HTML pages. |