Skip to content

Commit

Permalink
try to enable tracer nbm build
Browse files Browse the repository at this point in the history
  • Loading branch information
tmiddlet2666 committed Mar 7, 2024
1 parent 1ead227 commit 3b0f3d7
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 32 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-against-released.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'zulu'
distribution: 'temurin'

- name: Build Tracer
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-against-snapshot-1440.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'zulu'
distribution: 'temurin'

- name: Build Tracer
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-against-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'zulu'
distribution: 'temurin'

- name: Build Tracer
shell: bash
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ You must have the following:
Note:
To install the tracer support, you must also run the script `./scrips/install-tracer-library.sh`
Ensure you set your environment to JDK 1.8 to run this script.
### Clone the Repository
Expand Down
59 changes: 30 additions & 29 deletions scripts/install-tracer-library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,36 +30,37 @@ 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}"
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}"

FULL_PATH=$DIR/org-graalvm-visualvm-modules-tracer-2.1.jar
# Temp
# 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 3b0f3d7

Please sign in to comment.