Skip to content
Browse files

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.
  • Loading branch information...
1 parent c693fce commit 1102bc84cb98992129c8178903a56128cb9f8ab9 @nau nau committed with Oct 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 compile/inc/Incremental.scala
View
2 compile/inc/Incremental.scala
@@ -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))
}
)

0 comments on commit 1102bc8

Please sign in to comment.
Something went wrong with that request. Please try again.