summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2009-06-23 16:19:24 +0000
committerPaul Phillips <paulp@improving.org>2009-06-23 16:19:24 +0000
commit4bac7312b3c32c63e66db06969d7cd9275162323 (patch)
tree004767dac7b4afff49cc87291ec63707491f816d /src
parentd09ec90432258a34e4afcd803c4e1fc10338d695 (diff)
downloadscala-4bac7312b3c32c63e66db06969d7cd9275162323.tar.gz
scala-4bac7312b3c32c63e66db06969d7cd9275162323.tar.bz2
scala-4bac7312b3c32c63e66db06969d7cd9275162323.zip
Put a stop to empty .scala_dependencies files.
Diffstat (limited to 'src')
-rw-r--r--src/compiler/scala/tools/nsc/dependencies/DependencyAnalysis.scala6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/dependencies/DependencyAnalysis.scala b/src/compiler/scala/tools/nsc/dependencies/DependencyAnalysis.scala
index 48b22677b2..de141303fe 100644
--- a/src/compiler/scala/tools/nsc/dependencies/DependencyAnalysis.scala
+++ b/src/compiler/scala/tools/nsc/dependencies/DependencyAnalysis.scala
@@ -94,6 +94,12 @@ trait DependencyAnalysis extends SubComponent with Files {
dependencies.depends(source, d.sourceFile);
}
}
+ // When all is said and done, if the dependencies file is 0 length
+ // delete it so people do not curse it with the vehemence with which
+ // they curse .DS_Store and the like. This feels like a strange
+ // place to put this, but was the best I could find on short notice.
+ for (f <- dependenciesFile ; size <- f.sizeOption ; if size == 0)
+ f.delete
}
}
}