mirror of
https://github.com/wahyd4/pinpoint.git
synced 2026-08-24 20:26:16 +10:00
git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-server/trunk@4007 84d0f5b1-2673-498c-a247-62c4ff18d310
41 lines
848 B
Bash
Executable File
41 lines
848 B
Bash
Executable File
#! /bin/bash
|
|
VERSION="1.0.2-SNAPSHOT"
|
|
DEPLOY_DIR="../pinpoint-testbed/pinpoint-collector/webapps"
|
|
FILENAME="pinpoint-collector-$VERSION.war"
|
|
|
|
rm $DEPLOY_DIR/$FILENAME
|
|
|
|
#profile
|
|
PROFILE=""
|
|
if [ "$1" != "" ] ; then
|
|
PROFILE="-P $1"
|
|
echo "*********************"
|
|
echo "USING PROFILE $1"
|
|
echo "*********************"
|
|
else
|
|
echo "*********************"
|
|
echo "USING DEFAULT PROFILE"
|
|
echo "*********************"
|
|
fi
|
|
|
|
rm -fr $DEPLOY_DIR/*
|
|
rc=$?
|
|
if [[ $rc != 0 ]] ; then
|
|
echo "BUILD FAILED $rc"
|
|
exit $rc
|
|
fi
|
|
|
|
#server
|
|
mvn clean eclipse:eclipse install package dependency:copy-dependencies -Dmaven.test.skip $PROFILE
|
|
rc=$?
|
|
if [[ $rc != 0 ]] ; then
|
|
echo "BUILD FAILED $rc"
|
|
exit $rc
|
|
fi
|
|
|
|
cp ./target/pinpoint-collector-$VERSION.war $DEPLOY_DIR
|
|
rc=$?
|
|
if [[ $rc != 0 ]] ; then
|
|
echo "BUILD FAILED $rc"
|
|
exit $rc
|
|
fi |