mirror of https://github.com/sbt/sbt.git
fixed bug with missing file
This commit is contained in:
parent
6d29c8a429
commit
8f4f02e4ac
|
|
@ -23,6 +23,8 @@ object Packaging {
|
|||
sbtLaunchJar <<= (sbtLaunchJarUrl, sbtLaunchJarLocation) map { (uri, file) =>
|
||||
import dispatch._
|
||||
if(!file.exists) {
|
||||
// oddly, some places require us to create the file before writing...
|
||||
file.createNewFile()
|
||||
val writer = new java.io.BufferedOutputStream(new java.io.FileOutputStream(file))
|
||||
try Http(url(uri) >>> writer)
|
||||
finally writer.close()
|
||||
|
|
|
|||
Loading…
Reference in New Issue