Handle the case of missing ~/.sbt/staging directory when asking for a source project dependency.

This commit is contained in:
Eugene Vigdorchik 2012-06-01 19:47:08 +04:00 committed by Mark Harrah
parent e37145137f
commit d7f7a243e5
1 changed files with 4 additions and 1 deletions

View File

@ -146,5 +146,8 @@ object Resolvers
file
}
def uniqueSubdirectoryFor(uri: URI, in: File) = new File(in, Hash.halfHashString(uri.normalize.toASCIIString))
def uniqueSubdirectoryFor(uri: URI, in: File) = {
in.mkdirs()
new File(in, Hash.halfHashString(uri.normalize.toASCIIString))
}
}