From 92c9a601f36cdba60e2222bd00aa66e607d1adb6 Mon Sep 17 00:00:00 2001 From: M Sazzadul Hoque <7600764+sazzad16@users.noreply.github.com> Date: Thu, 19 Oct 2023 12:45:18 +0600 Subject: [PATCH] Move pom.properties file into redis.clients.jedis package (#3589) --- src/main/java/redis/clients/jedis/util/JedisMetaInfo.java | 6 ++++-- src/main/resources/{ => redis/clients/jedis}/pom.properties | 0 2 files changed, 4 insertions(+), 2 deletions(-) rename src/main/resources/{ => redis/clients/jedis}/pom.properties (100%) diff --git a/src/main/java/redis/clients/jedis/util/JedisMetaInfo.java b/src/main/java/redis/clients/jedis/util/JedisMetaInfo.java index 0025f3a522..90e6a7955d 100644 --- a/src/main/java/redis/clients/jedis/util/JedisMetaInfo.java +++ b/src/main/java/redis/clients/jedis/util/JedisMetaInfo.java @@ -15,10 +15,12 @@ public class JedisMetaInfo { static { Properties p = new Properties(); - try (InputStream in = JedisMetaInfo.class.getClassLoader().getResourceAsStream("pom.properties")) { + try (InputStream in = JedisMetaInfo.class.getClassLoader() + .getResourceAsStream("redis/clients/jedis/pom.properties")) { p.load(in); } catch (Exception e) { - LoggerFactory.getLogger(JedisMetaInfo.class).error("Load Jedis meta info from pom.properties failed", e); + LoggerFactory.getLogger(JedisMetaInfo.class) + .error("Load Jedis meta info from pom.properties failed", e); } groupId = p.getProperty("groupId", null); diff --git a/src/main/resources/pom.properties b/src/main/resources/redis/clients/jedis/pom.properties similarity index 100% rename from src/main/resources/pom.properties rename to src/main/resources/redis/clients/jedis/pom.properties