create-webstart-standalone.sh revision 3256
575N/A# Determine the location to this script so that we know where we are in the 575N/A# Make sure that a few constants are defined that will be needed to build the 575N/Aif test -z
"${PROTOCOL}" 575N/Aecho "PROTOCOL: ${PROTOCOL}" 575N/Aecho "ADDRESS: ${ADDRESS}" 575N/Aif test -z
"${BASE_PATH}" 575N/Aecho "BASE_PATH: ${BASE_PATH}" 1158N/Aif test -z
"${INSTALL_JNLP_FILENAME}" 1158N/Aecho "INSTALL_JNLP_FILENAME: ${INSTALL_JNLP_FILENAME}" 575N/A# See if we can find the location of the dependencies in the Java environment. 575N/Aif test -z
"${JAVA_HOME}" 575N/A if test -z
"${JAVA_HOME}" 575N/A echo "Please set JAVA_HOME to the root of a Java 5.0 installation." 575N/A echo "ERROR: Cannot find the ${JAR} utility." 575N/A echo " Is JAVA_HOME set correctly?" 575N/A echo " It should point to the root of a JDK (not a JRE) installation" 575N/Aif test ! -x
"${JARSIGNER}" 575N/A echo "ERROR: Cannot find the ${JARSIGNER} utility." 575N/A echo " Is JAVA_HOME set correctly?" 575N/A echo " It should point to the root of a JDK (not a JRE) installation" 575N/A# Make sure that the OpenDS build directory exists. If not, then create it. 575N/Aif test ! -d
"${BUILD_DIR}" 575N/A echo "WARNING: ${BUILD_DIR} does not exist. Building the server ..." 575N/A echo "ERROR: Build failed. Aborting creation of web start archive." 575N/A echo "The server was built successfully." 575N/A# Determine what the name should be for the OpenDS zip file name, but without 575N/A# Create the directory structure into which we will place the archive. 575N/Aecho "Creating the initial directory structure ..." 575N/A# Copy the static files from the script directory into the appropriate places 575N/Aecho "Copying static content into place ..." 575N/Acp -
Rp "${SCRIPT_DIR}/images" "${INSTALL_DIR}" 575N/A# Copy the appropriate OpenDS library files and make sure they are signed. 575N/A echo "Signing ${LIBFILE} ..." 575N/A cp "${PKG_LIB_DIR}/${LIBFILE}" "${INSTALL_DIR}/lib" 575N/A "${INSTALL_DIR}/lib/${LIBFILE}" "${CERT_ALIAS}" 575N/Acd "${BUILD_DIR}/package" 1158N/A# Create the Setup JNLP file with the appropriate contents. 1158N/Aecho "Creating Setup JNLP file ${INSTALL_JNLP_FILENAME} ..." 1158N/Acat >
"${INSTALL_JNLP_FILENAME}" <<ENDOFINSTALLJNLP
575N/A<?xml version="1.0" encoding="utf-8"?> 1365N/A<!-- JNLP File for OpenDS QuickSetup Application --> 1158N/A codebase="${INSTALLER_URI}" href="${INSTALL_JNLP_FILENAME}"> 1365N/A <title>OpenDS QuickSetup Application</title> 575N/A <vendor>http://www.opends.org/</vendor> 575N/A <homepage href="http://www.opends.org"/> 1365N/A <description>OpenDS QuickSetup Application</description> 575N/A <description kind="short">OpenDS Web Start Installer</description> 575N/A <icon href="images/opendshref.png" height="128" width="128"/> 575N/A <icon kind="splash" href="images/opendssplash.png" height="114" width="479"/> 575N/A <j2se version="1.5+" java-vm-args="-client"/> 575N/A <jar href="lib/quicksetup.jar" download="eager" main="true"/> 575N/A <jar href="lib/OpenDS.jar" download="lazy"/> 575N/A <jar href="lib/je.jar" download="lazy"/> 929N/A <jar href="lib/aspectjrt.jar" download="lazy"/> 575N/A <jar href="lib/zipped.jar" download="lazy"/> 575N/A <property name="org.opends.quicksetup.iswebstart" value="true" /> 2152N/A <property name="org.opends.quicksetup.Application.class" value="org.opends.quicksetup.installandupgrader.InstallAndUpgrader"/> 929N/A <property name="org.opends.quicksetup.lazyjarurls" value="${INSTALLER_URI}/lib/OpenDS.jar ${INSTALLER_URI}/lib/zipped.jar ${INSTALLER_URI}/lib/je.jar ${INSTALLER_URI}/lib/aspectjrt.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. 575N/Aecho "It is intended for deployment at ${INSTALLER_URI}"