mirror of https://github.com/sbt/sbt.git
Merge pull request #6503 from eed3si9n/wip/6497
Skip zip file manipulation if the package is empty
This commit is contained in:
commit
75ebde5995
|
|
@ -163,7 +163,8 @@ object RemoteCache {
|
||||||
val artp = artifactPath.value
|
val artp = artifactPath.value
|
||||||
val af = compileAnalysisFile.value
|
val af = compileAnalysisFile.value
|
||||||
IO.copyFile(original, artp)
|
IO.copyFile(original, artp)
|
||||||
if (af.exists) {
|
// skip zip manipulation if the artp is a blank file
|
||||||
|
if (af.exists && artp.length() > 0) {
|
||||||
JarUtils.includeInJar(artp, Vector(af -> s"META-INF/inc_compile.zip"))
|
JarUtils.includeInJar(artp, Vector(af -> s"META-INF/inc_compile.zip"))
|
||||||
}
|
}
|
||||||
// val testStream = (test / streams).?.value
|
// val testStream = (test / streams).?.value
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue