view install.sh @ 2:afd6bcb26436 default tip

Update plugin for 1.1.0-SNAPSHOT
author Omair Majid <omajid@redhat.com>
date Sun, 28 Sep 2014 23:50:17 -0400
parents 5ed86f4d1723
children
line wrap: on
line source

#!/bin/bash -ex

#
# Installs this project as a plugin
#

PLUGIN_NAME="custom-plugin"
PLUGIN_VERSION="0.2"

THERMOSTAT_HOME="../thermostat/distribution/target/image"
PLUGIN_HOME="${THERMOSTAT_HOME}"/plugins/"${PLUGIN_NAME}"

mkdir -p "${PLUGIN_HOME}"
cp agent/target/agent-"${PLUGIN_VERSION}".jar "${PLUGIN_HOME}/"
cp common/target/common-"${PLUGIN_VERSION}".jar "${PLUGIN_HOME}/"
cp common/target/common-"${PLUGIN_VERSION}".jar "${THERMOSTAT_HOME}/webapp/WEB-INF/lib/"
cp gui/target/gui-"${PLUGIN_VERSION}".jar "${PLUGIN_HOME}/"
cp thermostat-plugin.xml "${PLUGIN_HOME}"/