mirror of https://github.com/sbt/sbt.git
relativize that takes File arguments
This commit is contained in:
parent
da0444e5a3
commit
fa10f1a614
|
|
@ -223,6 +223,7 @@ object Path extends Alternatives with Mapper
|
|||
else
|
||||
None
|
||||
}
|
||||
def relativizeFile(baseFile: File, file: File): Option[File] = relativize(baseFile, file).map { path => new File(path) }
|
||||
private[sbt] def relativize(baseFile: File, file: File): Option[String] =
|
||||
{
|
||||
val pathString = file.getAbsolutePath
|
||||
|
|
|
|||
Loading…
Reference in New Issue