mirror of https://github.com/sbt/sbt.git
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:
parent
b14d616a12
commit
bdfb570a42
|
|
@ -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))
|
||||
}
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue