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-10-22 14:02:05 +03:00 committed by Mark Harrah
parent b14d616a12
commit bdfb570a42
1 changed files with 1 additions and 1 deletions

View File

@ -214,7 +214,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))
}
)