6110N/A# The contents of this file are subject to the terms of the 6110N/A# Common Development and Distribution License, Version 1.0 only 6110N/A# (the "License"). You may not use this file except in compliance 6110N/A# You can obtain a copy of the license at 6110N/A# See the License for the specific language governing permissions 6110N/A# and limitations under the License. 6110N/A# When distributing Covered Code, include this CDDL HEADER in each 6110N/A# file and include the License file at 6110N/A# add the following below this CDDL HEADER, with the fields enclosed 6110N/A# by brackets "[]" replaced with your own identifying information: 6110N/A# Portions Copyright [yyyy] [name of copyright owner] 6110N/A# Portions Copyright 2006-2010 Sun Microsystems Inc. 6110N/A# Copyright 2010-2013 ForgeRock AS 575N/A# Determine the location to this script so that we know where we are in the 6331N/Aprint "ROOT_DIR: ${ROOT_DIR}" 6331N/Aprint "PRODUCT_FILE: ${PRODUCT_FILE}" 6331N/Aprint "PRODUCT_NAME: ${PRODUCT_NAME}" 575N/A# Make sure that a few constants are defined that will be needed to build the 6331N/Aprint "PROTOCOL: ${PROTOCOL}" 6331N/Aprint "BASE_PATH: ${BASE_PATH}" 6331N/Aprint "INSTALL_JNLP_FILENAME: ${INSTALL_JNLP_FILENAME}" 575N/A# See if we can find the location of the dependencies in the Java environment. 6331N/A print -
u2 'Please set JAVA_HOME to the root of a Java 6.0 installation.' 6331N/AERROR: Cannot find the jar utility. 6331N/A Is JAVA_HOME ('"${JAVA_HOME}"'set correctly?" 6331N/A It should point to the root of a JDK (not a JRE) installation 6331N/AERROR: Cannot find the jarsigner utility. 6331N/A Is JAVA_HOME ('"${JAVA_HOME}"') set correctly?" 6331N/A It should point to the root of a JDK (not a JRE) installation 5612N/A# Make sure that the OpenDJ build directory exists. If not, then create it. 6331N/Aprint "BUILD_DIR: ${BUILD_DIR}" 6331N/A print -
u2 "WARNING: ${BUILD_DIR} does not exist. Building the server ..." 6331N/A print -
u2 'ERROR: Build failed. Aborting creation of web start archive.' 6331N/A print "The server was built successfully." 5612N/A# Determine what the name should be for the OpenDJ zip file name, but without 575N/A# Create the directory structure into which we will place the archive. 6331N/Aprint "Creating the initial directory structure ..." 575N/A# Copy the static files from the script directory into the appropriate places 6331N/Aprint "Copying static content into place ..." 5612N/A# Copy the appropriate OpenDJ library files and make sure they are signed. 6331N/A print "Signing ${LIBFILE} ..." 6331N/A cp "${PKG_LIB_DIR}/${LIBFILE}" "${INSTALL_DIR}/lib" 6331N/A "${INSTALL_DIR}/lib/${LIBFILE}" "${CERT_ALIAS}" 6331N/A cp "${ZIP_FILENAME_BASE}/Legal" "${INSTALL_DIR}/lib" 6331N/A -C
"${ZIP_FILENAME_BASE}/" "Legal" 6331N/A # Create the resource line to add to the jnlp script. 575N/Acd "${BUILD_DIR}/package" 1158N/A# Create the Setup JNLP file with the appropriate contents. 6331N/Aprint "Creating Setup JNLP file ${INSTALL_JNLP_FILENAME} ..." 1158N/Acat >
"${INSTALL_JNLP_FILENAME}" <<ENDOFINSTALLJNLP
575N/A<?xml version="1.0" encoding="utf-8"?> 5250N/A<!-- JNLP File for ${PRODUCT_NAME} QuickSetup Application --> 1158N/A codebase="${INSTALLER_URI}" href="${INSTALL_JNLP_FILENAME}"> 5250N/A <title>${PRODUCT_NAME} QuickSetup Application</title> 5252N/A <homepage href="${HOMEPAGE}"/> 5250N/A <description>${PRODUCT_NAME} QuickSetup Application</description> 5250N/A <description kind="short">${PRODUCT_NAME} Web Start Installer</description> 6311N/A <icon href="images/opendjhref.png" height="128" width="128"/> 6311N/A <icon kind="splash" href="images/opendjsplash.png" height="114" width="479"/> 5218N/A <j2se version="1.6+" java-vm-args="-client"/> 575N/A <jar href="lib/quicksetup.jar" download="eager" main="true"/> 6182N/A <jar href="lib/${PRODUCT_NAME}.jar" download="lazy"/> 6182N/A <jar href="lib/je.jar" download="lazy"/> 575N/A <jar href="lib/zipped.jar" download="lazy"/> 575N/A <property name="org.opends.quicksetup.iswebstart" value="true" /> 6265N/A <property name="org.opends.quicksetup.Application.class" value="org.opends.quicksetup.installer.webstart.WebStartInstaller"/> 6182N/A <property name="org.opends.quicksetup.lazyjarurls" value="${INSTALLER_URI}/lib/${PRODUCT_NAME}.jar ${INSTALLER_URI}/lib/zipped.jar ${INSTALLER_URI}/lib/je.jar" /> 575N/A <property name="org.opends.quicksetup.zipfilename" value="${ZIP_FILENAME_BASE}.zip"/> 575N/A <application-desc main-class="org.opends.quicksetup.SplashScreen"/> 575N/A# Tell the user where the files are. 6331N/AThe deployable content may be found in: 6331N/AIt is intended for deployment at: