From 4bac7312b3c32c63e66db06969d7cd9275162323 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Tue, 23 Jun 2009 16:19:24 +0000 Subject: Put a stop to empty .scala_dependencies files. --- src/compiler/scala/tools/nsc/dependencies/DependencyAnalysis.scala | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') 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 } } } -- cgit v1.2.3