From c40d0e97073308be76b6ebe846358c9985ff1acd Mon Sep 17 00:00:00 2001 From: Rohan Padhye Date: Mon, 5 Jun 2023 12:24:59 -0400 Subject: [PATCH] Update classpath.sh to include instrument package Co-authored-by: Yuqi Huai (@YuqiHuai) Fixes broken tutorial instructions (#233) --- scripts/classpath.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/classpath.sh b/scripts/classpath.sh index 61fa464d3..c0d8d12ff 100755 --- a/scripts/classpath.sh +++ b/scripts/classpath.sh @@ -8,11 +8,18 @@ popd > /dev/null # The root dir is one up ROOT_DIR=`dirname $SCRIPT_DIR` -# Create classpath +# Create classpath using all classes from and dependencies of the `fuzz` and `instrument` packages + cp="$ROOT_DIR/fuzz/target/classes:$ROOT_DIR/fuzz/target/test-classes" for jar in $ROOT_DIR/fuzz/target/dependency/*.jar; do cp="$cp:$jar" done +cp="$cp:$ROOT_DIR/instrument/target/classes:$ROOT_DIR/instrument/target/test-classes" + +for jar in $ROOT_DIR/instrument/target/dependency/*.jar; do + cp="$cp:$jar" +done + echo $cp