From 688aa745d6f0e26f5a38a15c5be04eac0c2ba518 Mon Sep 17 00:00:00 2001 From: hengyunabc Date: Thu, 10 Jun 2021 14:29:41 +0800 Subject: [PATCH] upgrade one-java-agent --- core/pom.xml | 2 +- .../main/java/com/taobao/arthas/oneagent/PluginsCommand.java | 4 ++-- core/src/main/java/plugin.properties | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/pom.xml b/core/pom.xml index 894431411..5dcfa5d56 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -140,7 +140,7 @@ com.alibaba.oneagent one-java-agent - 0.0.1-SNAPSHOT + 0.0.2-SNAPSHOT true provided diff --git a/core/src/main/java/com/taobao/arthas/oneagent/PluginsCommand.java b/core/src/main/java/com/taobao/arthas/oneagent/PluginsCommand.java index 35923c360..716c99038 100644 --- a/core/src/main/java/com/taobao/arthas/oneagent/PluginsCommand.java +++ b/core/src/main/java/com/taobao/arthas/oneagent/PluginsCommand.java @@ -4,7 +4,7 @@ import static com.taobao.text.ui.Element.label; import com.alibaba.arthas.deps.org.slf4j.Logger; import com.alibaba.arthas.deps.org.slf4j.LoggerFactory; -import com.alibaba.oneagent.OneAgent; +import com.alibaba.oneagent.BootstrapAgent; import com.alibaba.oneagent.plugin.Plugin; import com.alibaba.oneagent.plugin.PluginManager; import com.taobao.arthas.core.shell.command.AnnotatedCommand; @@ -66,7 +66,7 @@ public class PluginsCommand extends AnnotatedCommand { public void process(CommandProcess process) { int exitCode = 0; try { - PluginManager pluginMaanger = OneAgent.getInstance().pluginMaanger(); + PluginManager pluginMaanger = BootstrapAgent.getAgent().pluginManager(); if (this.startPlugin != null) { Plugin findPlugin = pluginMaanger.findPlugin(startPlugin); if (findPlugin != null) { diff --git a/core/src/main/java/plugin.properties b/core/src/main/java/plugin.properties index 2d02e03ec..1c908fb0c 100644 --- a/core/src/main/java/plugin.properties +++ b/core/src/main/java/plugin.properties @@ -1,5 +1,5 @@ specification=1 name=arthas -version=3.4.1 +version=3.5.1 classpath=arthas-core.jar pluginActivator=com.taobao.arthas.oneagent.ArthasActivator \ No newline at end of file