This is an automated email from the ASF dual-hosted git repository.
tison pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/zookeeper.git
The following commit(s) were added to refs/heads/master by this push:
new e50a0bbae [ZOOKEEPER-4671] Java classpath should contain libs about
metrics providers (#1908)
e50a0bbae is described below
commit e50a0bbae1bc0b812ac2656f5ba3f9eab7c3d62e
Author: Guoxiong Li <[email protected]>
AuthorDate: Fri Mar 17 15:01:29 2023 +0800
[ZOOKEEPER-4671] Java classpath should contain libs about metrics providers
(#1908)
---
bin/zkEnv.sh | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/bin/zkEnv.sh b/bin/zkEnv.sh
index 0728c2e70..46a4621c4 100755
--- a/bin/zkEnv.sh
+++ b/bin/zkEnv.sh
@@ -111,17 +111,27 @@ do
CLASSPATH="$d:$CLASSPATH"
done
+#make it work for developers
for d in "$ZOOBINDIR"/../zookeeper-server/target/lib/*.jar
do
CLASSPATH="$d:$CLASSPATH"
done
+#make it work for developers
+for d in
"$ZOOBINDIR"/../zookeeper-metrics-providers/zookeeper-prometheus-metrics/target/lib/*.jar
+do
+ CLASSPATH="$d:$CLASSPATH"
+done
+
#make it work for developers
CLASSPATH="$ZOOBINDIR/../build/classes:$CLASSPATH"
#make it work for developers
CLASSPATH="$ZOOBINDIR/../zookeeper-server/target/classes:$CLASSPATH"
+#make it work for developers
+CLASSPATH="$ZOOBINDIR/../zookeeper-metrics-providers/zookeeper-prometheus-metrics/target/classes:$CLASSPATH"
+
case "`uname`" in
CYGWIN*|MINGW*) cygwin=true ;;
*) cygwin=false ;;