mirror of https://github.com/sbt/sbt.git
Don't create unnecessary directories in cache
This commit is contained in:
parent
64deea8edc
commit
84124ba38b
|
|
@ -90,8 +90,6 @@ case class Files(
|
|||
def remote(file: File, url: String) =
|
||||
Task {
|
||||
try {
|
||||
file.getParentFile.mkdirs()
|
||||
|
||||
logger.foreach(_.downloadingArtifact(url))
|
||||
|
||||
val conn = new URL(url).openConnection() // FIXME Should this be closed?
|
||||
|
|
@ -108,6 +106,7 @@ case class Files(
|
|||
|
||||
val result =
|
||||
try {
|
||||
file.getParentFile.mkdirs()
|
||||
val out = new FileOutputStream(file)
|
||||
try {
|
||||
var lock: FileLock = null
|
||||
|
|
|
|||
Loading…
Reference in New Issue