%@ 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.*" %> <%@ page import="org.openlaszlo.xml.internal.XMLUtils.*" %> <%@ page import="org.w3c.dom.*" %> <%@ page import="javax.xml.transform.*" %> <%@ page import="javax.xml.transform.dom.*" %> <%@ page import="javax.xml.transform.stream.*" %> <%@ page import="javax.xml.parsers.DocumentBuilderFactory" %>
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 directory, 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 probably not what you want. <% return; } wrapperUrl = new URL(new URL(baseUrl), appUrl + "?lzr=dhtml&lzt=html&lzproxied=false"); canvasUrl = new URL(new URL(baseUrl), appUrl + "?lzr=dhtml&lzt=canvas&lzproxied=false"); // load the app's canvas descriptor from the compiler String str; BufferedReader in; try { in = new BufferedReader(new InputStreamReader(canvasUrl.openStream())); } catch (IOException urlex) { %> Error occurred when trying to fetch url <%=canvasUrl%> <% return; } // Need to check for HTTP 404 or other error while ((str = in.readLine()) != null) { canvasbuf.append(str+"\n"); } in.close(); canvasElt = parse(canvasbuf.toString(), out); String canvasdebug = canvasElt.getAttribute("debug"); if ("true".equals(canvasdebug)) { %>
<%= org.openlaszlo.xml.internal.XMLUtils.escapeXml(wrapper)%>
| 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 the Javscript browser integration support files, it will also generate some simple HTML wrappers which can be cut and pasted into HTML pages. |
| The SOLO deployment tool creates a Zip archive of all files, recursively, from the directory that contains your specified application source file. So it is best to use this SOLO tool on an application which resides in its own directory. If there are other applications in the same directory, this tool will copy all of those apps and their assets (and subdirectories) into the Zip file. That may not be what you want. |