mirror of https://github.com/sbt/sbt.git
Print both memberRef and inheritance relations.
To aid debugging, modify Relations.toString to include `inheritance` in addition to already printed `memberRef` relation. Modify it for both name hashing and old implementation.
This commit is contained in:
parent
c8bf46e893
commit
f78b7112a2
|
|
@ -618,13 +618,14 @@ private class MRelationsDefaultImpl(srcProd: Relation[File, File], binaryDep: Re
|
|||
|
||||
override def toString = (
|
||||
"""
|
||||
|Relations:
|
||||
| products: %s
|
||||
| bin deps: %s
|
||||
| src deps: %s
|
||||
| ext deps: %s
|
||||
| class names: %s
|
||||
""".trim.stripMargin.format(List(srcProd, binaryDep, internalSrcDep, externalDep, classes) map relation_s: _*)
|
||||
|Relations:
|
||||
| products: %s
|
||||
| bin deps: %s
|
||||
| src deps direct: %s
|
||||
| src deps inherited: %s
|
||||
| ext deps: %s
|
||||
| class names: %s
|
||||
""".trim.stripMargin.format(List(srcProd, binaryDep, internalSrcDep, publicInherited.internal, externalDep, classes) map relation_s: _*)
|
||||
)
|
||||
}
|
||||
|
||||
|
|
@ -739,14 +740,15 @@ private class MRelationsNameHashing(srcProd: Relation[File, File], binaryDep: Re
|
|||
|
||||
override def toString = (
|
||||
"""
|
||||
|Relations (with name hashing enabled):
|
||||
| products: %s
|
||||
| bin deps: %s
|
||||
| src deps: %s
|
||||
| ext deps: %s
|
||||
| class names: %s
|
||||
| used names: %s
|
||||
""".trim.stripMargin.format(List(srcProd, binaryDep, internalSrcDep, externalDep, classes, names) map relation_s: _*)
|
||||
|Relations (with name hashing enabled):
|
||||
| products: %s
|
||||
| bin deps: %s
|
||||
| src deps memberRef: %s
|
||||
| src deps inheritance: %s
|
||||
| ext deps: %s
|
||||
| class names: %s
|
||||
| used names: %s
|
||||
""".trim.stripMargin.format(List(srcProd, binaryDep, memberRef.internal, inheritance.internal, externalDep, classes, names) map relation_s: _*)
|
||||
)
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue