From 9031b8fb70cfdfb16254c1185746c32fe47993bd Mon Sep 17 00:00:00 2001 From: ruomeng Date: Tue, 9 May 2023 22:59:01 +0800 Subject: [PATCH] fix: update to read absolute path of google-api-client.properties (#2299) --- .../java/com/google/api/client/googleapis/GoogleUtils.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/google-api-client/src/main/java/com/google/api/client/googleapis/GoogleUtils.java b/google-api-client/src/main/java/com/google/api/client/googleapis/GoogleUtils.java index 19c7f30c9..c15c8a458 100644 --- a/google-api-client/src/main/java/com/google/api/client/googleapis/GoogleUtils.java +++ b/google-api-client/src/main/java/com/google/api/client/googleapis/GoogleUtils.java @@ -93,7 +93,8 @@ private static String getVersion() { // this value should be read and cached for later use String version = null; try (InputStream inputStream = - GoogleUtils.class.getResourceAsStream("google-api-client.properties")) { + GoogleUtils.class.getResourceAsStream( + "/com/google/api/client/googleapis/google-api-client.properties")) { if (inputStream != null) { Properties properties = new Properties(); properties.load(inputStream);