mirror of https://github.com/sbt/sbt.git
substitute variables in custom repository definitions
This commit is contained in:
parent
482ff4978d
commit
c7b73dc938
|
|
@ -171,7 +171,7 @@ class ConfigurationParser
|
|||
m.toList.map {
|
||||
case (key, None) => Predefined(key)
|
||||
case (key, Some(value)) =>
|
||||
val r = trim(value.split(",",3))
|
||||
val r = trim(substituteVariables(value).split(",",3))
|
||||
val url = try { new URL(r(0)) } catch { case e: MalformedURLException => error("Invalid URL specified for '" + key + "': " + e.getMessage) }
|
||||
if(r.length == 3) Ivy(key, url, r(1), r(2)) else if(r.length == 2) Ivy(key, url, r(1), r(1)) else Maven(key, url)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue