Fix error "source not found" exposed by fix for bug #39

git-svn-id: https://simple-build-tool.googlecode.com/svn/trunk@975 d89573ee-9141-11dd-94d4-bdf5e562f29c
This commit is contained in:
dmharrah 2009-08-30 01:28:12 +00:00
parent e56df17a04
commit ef5d6870a1
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ object Format
{
def path(basePath: Path): Format[Path] = new Format[Path]
{
def toString(path: Path) = path.relativePath
def toString(path: Path) = Path.relativize(basePath.asFile, path.asFile).getOrElse(error("Path " + path + " not in " + basePath))
def fromString(s: String) = Path.fromString(basePath, s)
}
implicit val file: Format[File] = new Format[File]