mirror of https://github.com/sbt/sbt.git
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:
parent
e56df17a04
commit
ef5d6870a1
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Reference in New Issue