mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 16:28:12 -07:00
Use ~/kobalt/settings.xml.
This commit is contained in:
parent
a7d951df10
commit
3d6f0e4efb
1 changed files with 2 additions and 2 deletions
|
@ -17,7 +17,7 @@ import javax.xml.bind.annotation.XmlRootElement
|
|||
@XmlRootElement(name = "kobalt-settings")
|
||||
class KobaltSettingsXml {
|
||||
@XmlElement @JvmField
|
||||
var localRepo: String = homeDir(KFiles.KOBALT_DOT_DIR, "repository")
|
||||
var localRepo: String = homeDir(KFiles.KOBALT_DIR, "repository")
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -31,7 +31,7 @@ class KobaltSettings @Inject constructor(val xmlFile: KobaltSettingsXml) {
|
|||
var localRepo = xmlFile.localRepo
|
||||
|
||||
companion object {
|
||||
val SETTINGS_FILE_PATH = homeDir(KFiles.KOBALT_DOT_DIR, "settings.xml")
|
||||
val SETTINGS_FILE_PATH = homeDir(KFiles.KOBALT_DIR, "settings.xml")
|
||||
|
||||
fun readSettingsXml() : KobaltSettings {
|
||||
val file = File(KobaltSettings.SETTINGS_FILE_PATH)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue