mirror of https://github.com/sbt/sbt.git
Implement toString to debug packageBin
This commit is contained in:
parent
721f202ae5
commit
6952d3c46d
|
|
@ -104,7 +104,21 @@ object Pkg:
|
||||||
val sources: Seq[(HashedVirtualFileRef, String)],
|
val sources: Seq[(HashedVirtualFileRef, String)],
|
||||||
val jar: VirtualFileRef,
|
val jar: VirtualFileRef,
|
||||||
val options: Seq[PackageOption]
|
val options: Seq[PackageOption]
|
||||||
)
|
) {
|
||||||
|
import sbt.util.CacheImplicits.hashedVirtualFileRefToStr
|
||||||
|
private def sourcesStr: String =
|
||||||
|
sources
|
||||||
|
.map { case (k, v) =>
|
||||||
|
s"${hashedVirtualFileRefToStr(k)}=$v"
|
||||||
|
}
|
||||||
|
.mkString(",\n ")
|
||||||
|
override def toString(): String = s"""Configuration(
|
||||||
|
sources = Seq(${sourcesStr}),
|
||||||
|
jar = ...,
|
||||||
|
options = ...,
|
||||||
|
)
|
||||||
|
"""
|
||||||
|
}
|
||||||
|
|
||||||
object Configuration:
|
object Configuration:
|
||||||
given IsoLList.Aux[
|
given IsoLList.Aux[
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue