Skip to content

Commit

Permalink
temporary workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
tmiddlet2666 committed Mar 7, 2024
1 parent 3b0f3d7 commit 6762aa7
Showing 1 changed file with 32 additions and 32 deletions.
64 changes: 32 additions & 32 deletions scripts/install-tracer-library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,39 +28,39 @@
set -e

# temp workaround
DIR=`pwd`

echo "Installing required tracer VisualVM dependencies"
TEMP_DIR=`mktemp -d`
echo "Temp dir = ${TEMP_DIR}"

trap "rm -rf $TEMP_DIR 2>&1 > /dev/null" 0 1 2 3

cd $TEMP_DIR
echo "Cloning VisualVM..."
git clone https://github.com/oracle/visualvm.git
cd visualvm
git checkout 2.1.7

curl -Lo /tmp/nb140_platform_20230511.zip https://github.com/oracle/visualvm/releases/download/2.1.7/nb140_platform_20230511.zip
cd visualvm
unzip /tmp/nb140_platform_20230511.zip

echo "Building VisualVM..."
ant build-zip

cd ../plugins
ant build

MODULE_NAME=org-graalvm-visualvm-modules-tracer

TRACER=`find . -name ${MODULE_NAME}.jar | sed 1q`
FULL_PATH=`pwd`/${TRACER}

echo "Installing ${FULL_PATH}"
#DIR=`pwd`
#
#echo "Installing required tracer VisualVM dependencies"
#TEMP_DIR=`mktemp -d`
#echo "Temp dir = ${TEMP_DIR}"
#
#trap "rm -rf $TEMP_DIR 2>&1 > /dev/null" 0 1 2 3
#
#cd $TEMP_DIR
#echo "Cloning VisualVM..."
#git clone https://github.com/oracle/visualvm.git
#cd visualvm
#git checkout 2.1.7
#
#curl -Lo /tmp/nb140_platform_20230511.zip https://github.com/oracle/visualvm/releases/download/2.1.7/nb140_platform_20230511.zip
#cd visualvm
#unzip /tmp/nb140_platform_20230511.zip
#
#echo "Building VisualVM..."
#ant build-zip
#
#cd ../plugins
#ant build
#
#MODULE_NAME=org-graalvm-visualvm-modules-tracer
#
#TRACER=`find . -name ${MODULE_NAME}.jar | sed 1q`
#FULL_PATH=`pwd`/${TRACER}
#
#echo "Installing ${FULL_PATH}"

# Temp
# FULL_PATH=$DIR/org-graalvm-visualvm-modules-tracer-2.1.jar
# Temp workaround
FULL_PATH=$DIR/org-graalvm-visualvm-modules-tracer-2.1.jar

set -x
mvn install:install-file -Dfile=${FULL_PATH} -DgroupId=org.graalvm.visualvm.modules -DartifactId=org-graalvm-visualvm-modules-tracer -Dversion=2.1 -Dpackaging=jar
Expand Down

0 comments on commit 6762aa7

Please sign in to comment.