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

snunit.plugin.internal.BuildInfo.scala Maven / Gradle / Ivy

The newest version!
package snunit.plugin.internal

object BuildInfo {
  private val buildInfoProperties: java.util.Properties = new java.util.Properties()

  {
    val buildInfoInputStream = getClass
      .getResourceAsStream("BuildInfo.buildinfo.properties")

    if(buildInfoInputStream == null)
      throw new RuntimeException("Could not load resource BuildInfo.buildinfo.properties")
    else try {
      buildInfoProperties.load(buildInfoInputStream)
    } finally {
      buildInfoInputStream.close()
    }
  }

  val snunitVersion = buildInfoProperties.getProperty("snunitVersion")
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy