d.core.2024.8.0.source-code.Version.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core Show documentation
Show all versions of core Show documentation
Sandboxing and code analysis toolkit for CS 124.
package edu.illinois.cs.cs125.jeed.core
import java.util.Properties
val version = run {
@Suppress("TooGenericExceptionCaught")
try {
val versionFile = object {}::class.java.getResource("/edu.illinois.cs.cs125.jeed.core.version")
Properties().also { it.load(versionFile.openStream()) }["version"] as String
} catch (e: Exception) {
println(e)
"unspecified"
}
}