summaryrefslogtreecommitdiff
path: root/project/build/Comparator.scala
diff options
context:
space:
mode:
authorHubert Plociniczak <hubert.plociniczak@epfl.ch>2011-11-02 14:34:35 +0000
committerHubert Plociniczak <hubert.plociniczak@epfl.ch>2011-11-02 14:34:35 +0000
commitb6778be91900b8161e705dc2598ef7af86842b0b (patch)
treed15e8ec18a37eec212f50f1ace27714d7e7d4d34 /project/build/Comparator.scala
parentac6c76f26d884a94d0c9ff54f055d3f9ab750bac (diff)
downloadscala-b6778be91900b8161e705dc2598ef7af86842b0b.tar.gz
scala-b6778be91900b8161e705dc2598ef7af86842b0b.tar.bz2
scala-b6778be91900b8161e705dc2598ef7af86842b0b.zip
Begone t1737...
Diffstat (limited to 'project/build/Comparator.scala')
-rw-r--r--project/build/Comparator.scala10
1 files changed, 5 insertions, 5 deletions
diff --git a/project/build/Comparator.scala b/project/build/Comparator.scala
index 32b1a516c6..7400788ba9 100644
--- a/project/build/Comparator.scala
+++ b/project/build/Comparator.scala
@@ -26,21 +26,21 @@ object Comparator {
val originPaths = filter(origin).get
-
+
val bufferSize = 1024
val originBuffer = new Array[Byte](bufferSize)
val destBuffer = new Array[Byte](bufferSize)
-
+
for (originPath <- originPaths.filter(! _.isDirectory)){
log.debug("origin :" + originPath.absolutePath)
val destPath = getMappedPath(originPath, dest)
log.debug("dest :" + destPath.absolutePath)
- var equalNow = true
+ var equalNow = true
val originFile = originPath.asFile
val destFile = destPath.asFile
if (originFile.canRead && destFile.canRead) {
-
+
val originStream = new FileInputStream(originFile)
val destStream = new FileInputStream(destFile)
var originRemaining = originStream.read(originBuffer)
@@ -63,7 +63,7 @@ object Comparator {
}
else reportMissing(originFile)
-
+
}
if(allEqualNow) None else Some("There were differences between "+origin.absolutePath+ " and "+ dest.absolutePath)
}