summaryrefslogtreecommitdiff
path: root/project/build/Comparator.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-01-27 20:24:50 +0000
committerPaul Phillips <paulp@improving.org>2011-01-27 20:24:50 +0000
commit330febc72b402aac2460be2cbc212d5860ed205c (patch)
treed43f7039557f0e6261f49f243e52c69f61eac9f6 /project/build/Comparator.scala
parent0d29472c7796ce6462e0893d7f401b56cbad1754 (diff)
downloadscala-330febc72b402aac2460be2cbc212d5860ed205c.tar.gz
scala-330febc72b402aac2460be2cbc212d5860ed205c.tar.bz2
scala-330febc72b402aac2460be2cbc212d5860ed205c.zip
Securing some of the blessings of whitespace fo...
Securing some of the blessings of whitespace for the sbt build. No review.
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 8b5d65d157..32b1a516c6 100644
--- a/project/build/Comparator.scala
+++ b/project/build/Comparator.scala
@@ -1,15 +1,15 @@
import sbt._
-import java.io.{File,FileInputStream}
+import java.io.{File, FileInputStream}
// Based on scala.tools.ant.Same
object Comparator {
- private def getMappedPath(path:Path,baseDirectory:Path):Path= {
- Path.fromString(baseDirectory,path.relativePath)
+ private def getMappedPath(path: Path, baseDirectory: Path): Path = {
+ Path.fromString(baseDirectory, path.relativePath)
}
- def compare(origin:Path,dest:Path,filter:Path=>PathFinder,log:Logger):Option[String] = {
+ def compare(origin: Path, dest: Path, filter: Path => PathFinder, log: Logger): Option[String] = {
log.info("Comparing the contents of "+origin.absolutePath+ " with "+dest.absolutePath)
var allEqualNow = true
@@ -33,7 +33,7 @@ object Comparator {
for (originPath <- originPaths.filter(! _.isDirectory)){
log.debug("origin :" + originPath.absolutePath)
- val destPath = getMappedPath(originPath,dest)
+ val destPath = getMappedPath(originPath, dest)
log.debug("dest :" + destPath.absolutePath)
var equalNow = true
val originFile = originPath.asFile