mirror of https://github.com/sbt/sbt.git
Fix java.util.zip.ZipException: duplicate entry
Fixes #4889 #4329 switched from using Map to Seq during packaging. That allowed multiple files to be included with different paths, but it also started admitting duplicate files causing ZipException.
This commit is contained in:
parent
8793034039
commit
9512a60fa6
|
|
@ -104,7 +104,7 @@ object Package {
|
|||
}
|
||||
|
||||
val inputFiles = conf.sources.map(_._1).toSet
|
||||
val inputs = conf.sources :+: lastModified(inputFiles) :+: manifest :+: HNil
|
||||
val inputs = conf.sources.distinct :+: lastModified(inputFiles) :+: manifest :+: HNil
|
||||
cachedMakeJar(inputs)(() => exists(conf.jar))
|
||||
()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ version := "0.2"
|
|||
mappings in (Compile, packageBin) ++= {
|
||||
val test = file("test")
|
||||
Seq(
|
||||
test -> "test1",
|
||||
test -> "test1",
|
||||
test -> "test2"
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue