WAR_NAME="glustermg.war" WAR_SCRIPTS_DIR=${WAR_NAME}/scripts NEW_WAR_NAME="glustermg" TAR_NAME=${WAR_NAME}.tar SERVER_DIST_DIR="${WORKSPACE}/../../glustermg/lastSuccessful" prepare-dist-dir() { if [ -d ${WAR_NAME} ]; then rm -rf ${WAR_NAME} fi mkdir -p ${WAR_SCRIPTS_DIR} if [ -d ${NEW_WAR_NAME} ]; then rm -rf ${NEW_WAR_NAME} fi } get-server-war() { cd ${WAR_NAME} WAR_FILE=`find -L ${SERVER_DIST_DIR} -name ${WAR_NAME}` jar xvf ${WAR_FILE} chmod +x scripts/* cd - } # On some platforms like Mac and Windows 7, the entries for other architectures are causing problem # e.g. The "x86" entries cause errors in a 64 bit Mac client. Hence we remove the unnecessary entries # from the JNLP files i.e. Remove all "x86_64" related tags from the JNLP file of "x86" architecture, # and vice versa update-jnlp() { CPU_ARCH=${1} JNLP_FILE=${2} if [ "${CPU_ARCH}" == "x86" ]; then TAG_START_EXPR="