mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-27 00:38:11 -07:00
Not needed.
This commit is contained in:
parent
0e3e70198c
commit
d8e893be9e
1 changed files with 0 additions and 2 deletions
|
@ -8,7 +8,6 @@ import java.util.*
|
||||||
|
|
||||||
@Singleton
|
@Singleton
|
||||||
class LocalProperties {
|
class LocalProperties {
|
||||||
var docUrl: String? = null
|
|
||||||
val localProperties: Properties by lazy {
|
val localProperties: Properties by lazy {
|
||||||
val result = Properties()
|
val result = Properties()
|
||||||
val filePath = Paths.get("local.properties")
|
val filePath = Paths.get("local.properties")
|
||||||
|
@ -24,7 +23,6 @@ class LocalProperties {
|
||||||
}
|
}
|
||||||
|
|
||||||
fun get(name: String, docUrl: String? = null) : String {
|
fun get(name: String, docUrl: String? = null) : String {
|
||||||
this.docUrl = docUrl
|
|
||||||
val result = localProperties.getProperty(name)
|
val result = localProperties.getProperty(name)
|
||||||
?: throw KobaltException("Couldn't find $name in local.properties", docUrl = docUrl)
|
?: throw KobaltException("Couldn't find $name in local.properties", docUrl = docUrl)
|
||||||
return result as String
|
return result as String
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue