mirror of
https://github.com/wahyd4/pinpoint.git
synced 2026-08-17 00:36:02 +10:00
git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-profiler-bootstrap/trunk@2188 84d0f5b1-2673-498c-a247-62c4ff18d310
128 lines
2.9 KiB
Bash
Executable File
128 lines
2.9 KiB
Bash
Executable File
VERSION="0.0.4-SNAPSHOT"
|
|
DEPLOY_DIR="../pinpoint-testbed/agent"
|
|
|
|
#profile
|
|
PROFILE=""
|
|
if [ "$1" != "" ] ; then
|
|
$PROFILE="-P$1"
|
|
echo "*********************"
|
|
echo "USING PROFILE $1"
|
|
echo "*********************"
|
|
else
|
|
echo "*********************"
|
|
echo "USING DEFAULT PROFILE"
|
|
echo "*********************"
|
|
fi
|
|
|
|
# profiler
|
|
pushd .
|
|
cd ../pinpoint-profiler
|
|
mvn clean install eclipse:eclipse package dependency:copy-dependencies -Dmaven.test.skip -Dthrift.executable.property=/Users/netspider/DEV-TOOLS/thrift-0.9.0/bin/thrift $PROFILE
|
|
rc=$?
|
|
if [[ $rc != 0 ]] ; then
|
|
echo "BUILD FAILED $rc"
|
|
exit $rc
|
|
fi
|
|
popd
|
|
|
|
# bootstrap
|
|
mvn clean install eclipse:eclipse package dependency:copy-dependencies -Dmaven.test.skip $PROFILE
|
|
rc=$?
|
|
if [[ $rc != 0 ]] ; then
|
|
echo "BUILD FAILED $rc"
|
|
exit $rc
|
|
fi
|
|
|
|
rm -fr $DEPLOY_DIR
|
|
mkdir -p $DEPLOY_DIR/lib
|
|
|
|
cp ./target/pinpoint-bootstrap-$VERSION-jar-with-dependencies.jar $DEPLOY_DIR/pinpoint-bootstrap-$VERSION.jar
|
|
rc=$?
|
|
if [[ $rc != 0 ]] ; then
|
|
echo "BUILD FAILED $rc"
|
|
exit $rc
|
|
fi
|
|
|
|
cp ../pinpoint-rpc/target/pinpoint-rpc-$VERSION.jar $DEPLOY_DIR/lib
|
|
rc=$?
|
|
if [[ $rc != 0 ]] ; then
|
|
echo "BUILD FAILED $rc"
|
|
exit $rc
|
|
fi
|
|
|
|
cp ../pinpoint-rpc/target/dependency/netty-3.6.6.Final.jar $DEPLOY_DIR/lib
|
|
rc=$?
|
|
if [[ $rc != 0 ]] ; then
|
|
echo "BUILD FAILED $rc"
|
|
exit $rc
|
|
fi
|
|
|
|
cp ../pinpoint-profiler/target/pinpoint-profiler-$VERSION.jar $DEPLOY_DIR/lib
|
|
rc=$?
|
|
if [[ $rc != 0 ]] ; then
|
|
echo "BUILD FAILED $rc"
|
|
exit $rc
|
|
fi
|
|
|
|
cp ../pinpoint-profiler/target/dependency/javassist-3.16.1-GA.jar $DEPLOY_DIR/lib
|
|
rc=$?
|
|
if [[ $rc != 0 ]] ; then
|
|
echo "BUILD FAILED $rc"
|
|
exit $rc
|
|
fi
|
|
|
|
cp ../pinpoint-profiler/target/dependency/libthrift-0.9.0.jar $DEPLOY_DIR/lib
|
|
rc=$?
|
|
if [[ $rc != 0 ]] ; then
|
|
echo "BUILD FAILED $rc"
|
|
exit $rc
|
|
fi
|
|
|
|
cp ../pinpoint-profiler/target/dependency/log4j-1.2.16.jar $DEPLOY_DIR/lib
|
|
rc=$?
|
|
if [[ $rc != 0 ]] ; then
|
|
echo "BUILD FAILED $rc"
|
|
exit $rc
|
|
fi
|
|
|
|
cp ../pinpoint-profiler/target/dependency/slf4j-log4j12-1.7.5.jar $DEPLOY_DIR/lib
|
|
rc=$?
|
|
if [[ $rc != 0 ]] ; then
|
|
echo "BUILD FAILED $rc"
|
|
exit $rc
|
|
fi
|
|
|
|
cp ../pinpoint-profiler/target/dependency/slf4j-api-1.7.5.jar $DEPLOY_DIR/lib
|
|
rc=$?
|
|
if [[ $rc != 0 ]] ; then
|
|
echo "BUILD FAILED $rc"
|
|
exit $rc
|
|
fi
|
|
|
|
cp ../pinpoint-profiler/target/dependency/guava-14.0.1.jar $DEPLOY_DIR/lib
|
|
rc=$?
|
|
if [[ $rc != 0 ]] ; then
|
|
echo "BUILD FAILED $rc"
|
|
exit $rc
|
|
fi
|
|
|
|
cp ../pinpoint-profiler/runscript/help.txt $DEPLOY_DIR
|
|
rc=$?
|
|
if [[ $rc != 0 ]] ; then
|
|
echo "BUILD FAILED $rc"
|
|
exit $rc
|
|
fi
|
|
|
|
cp ../pinpoint-profiler/target/classes/pinpoint.config $DEPLOY_DIR
|
|
rc=$?
|
|
if [[ $rc != 0 ]] ; then
|
|
echo "BUILD FAILED $rc"
|
|
exit $rc
|
|
fi
|
|
|
|
cp ../pinpoint-profiler/target/classes/log4j.xml $DEPLOY_DIR
|
|
rc=$?
|
|
if [[ $rc != 0 ]] ; then
|
|
echo "BUILD FAILED $rc"
|
|
exit $rc
|
|
fi |