mirror of https://github.com/sbt/sbt.git
Fix
Absolute-fscking-ly need unit tests for the features added recently now
This commit is contained in:
parent
997e3f4a80
commit
8180e09fcd
|
|
@ -52,9 +52,9 @@ object IvyXml {
|
|||
val excludes = node.children
|
||||
.filter(_.label == "exclude")
|
||||
.flatMap { node0 =>
|
||||
val org = node.attribute("org").getOrElse("*")
|
||||
val name = node.attribute("module").orElse(node.attribute("name")).getOrElse("*")
|
||||
val confs = node.attribute("conf").toOption.fold(Seq("*"))(_.split(','))
|
||||
val org = node0.attribute("org").getOrElse("*")
|
||||
val name = node0.attribute("module").orElse(node0.attribute("name")).getOrElse("*")
|
||||
val confs = node0.attribute("conf").toOption.filter(_.nonEmpty).fold(Seq("*"))(_.split(','))
|
||||
confs.map(_ -> (org, name))
|
||||
}
|
||||
.groupBy { case (conf, _) => conf }
|
||||
|
|
@ -169,4 +169,4 @@ object IvyXml {
|
|||
)
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue