All Downloads are FREE. Search and download functionalities are using the official Maven repository.

redis.clients.jedis.JedisMetaInfo Maven / Gradle / Ivy

The newest version!
package redis.clients.jedis;

import java.io.InputStream;
import java.util.Properties;
import org.slf4j.LoggerFactory;

/**
 * Jedis Meta info load version groupId
 */
class JedisMetaInfo {

  private static final String groupId;
  private static final String artifactId;
  private static final String version;

  static {
    Properties p = new 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);
    }

    groupId = p.getProperty("groupId", null);
    artifactId = p.getProperty("artifactId", null);
    version = p.getProperty("version", null);
  }

  public static String getGroupId() {
    return groupId;
  }

  public static String getArtifactId() {
    return artifactId;
  }

  public static String getVersion() {
    return version;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy