Update compile/inc/Incremental.scala

Fix for http://stackoverflow.com/questions/12972183/sbt-always-does-full-rebuild-because-of-modified-binary-dependency-rt-jar
def externalBinaryModified uses java.io.File.equals() to check if files are the same. It's better to use File.getCanonicalPath in this case.
This commit is contained in:
nau
2012-12-12 15:52:24 -05:00
committed by Mark Harrah
parent c693fce585
commit 1102bc84cb
+1 -1
View File
@@ -212,7 +212,7 @@ object Incremental
e <- entry(name)
} yield {
val resolved = Locate.resolve(e, name)
(resolved != dependsOn) || !equivS.equiv(previous.binary(dependsOn), current.binary(resolved))
(resolved.getCanonicalPath != dependsOn.getCanonicalPath) || !equivS.equiv(previous.binary(dependsOn), current.binary(resolved))
}
)