view dev/multi-module-plugin-archetype/src/main/resources/archetype-resources/deploy.sh @ 1383:21466861b0ef

Add thermostat multi-module plug-in archetype. Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2014-January/009130.html Reviewed-by: neugens PR1671
author Severin Gehwolf <sgehwolf@redhat.com>
date Tue, 21 Jan 2014 19:17:27 +0100
parents
children
line wrap: on
line source

#/bin/bash
if [ x"$THERMOSTAT_DEV_HOME" = x ] ; then
    echo "variable THERMOSTAT_DEV_HOME is not set, should point to the thermostat src directory"
    exit -1
fi

PLUGIN_DIR=$THERMOSTAT_DEV_HOME/distribution/target/image/plugins

TARGET_DIR="${pluginDeployDir}"

if [ -e $PLUGIN_DIR/$TARGET_DIR ]; then
    rm -rf $PLUGIN_DIR/$TARGET_DIR
fi

DISTRO_ZIP=$(pwd)/distribution/target/${artifactId}-distribution*.zip
pushd $PLUGIN_DIR
unzip $DISTRO_ZIP