substitute variables in custom repository definitions

This commit is contained in:
Mark Harrah 2012-01-31 07:01:08 -05:00
parent 482ff4978d
commit c7b73dc938
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}