fix ArthasBootstrap load arthas.properties with arthas.config.location/arthas.config.name config (#1852)

pull/1856/head
wochidaxiangchang 4 years ago committed by GitHub
parent 6bb360e9bc
commit 2ab1bca5f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -299,7 +299,7 @@ public class ArthasBootstrap {
String location = null;
if (arthasEnvironment.containsProperty(CONFIG_LOCATION_PROPERTY)) {
location = arthasEnvironment.resolvePlaceholders(CONFIG_LOCATION_PROPERTY);
location = arthasEnvironment.resolvePlaceholders(arthasEnvironment.getProperty(CONFIG_LOCATION_PROPERTY));
}
if (location == null) {
@ -308,7 +308,7 @@ public class ArthasBootstrap {
String configName = "arthas";
if (arthasEnvironment.containsProperty(CONFIG_NAME_PROPERTY)) {
configName = arthasEnvironment.resolvePlaceholders(CONFIG_NAME_PROPERTY);
configName = arthasEnvironment.resolvePlaceholders(arthasEnvironment.getProperty(CONFIG_NAME_PROPERTY));
}
if (location != null) {

Loading…
Cancel
Save