mirror of
https://github.com/sbt/sbt.git
synced 2026-09-03 16:39:24 +02:00
Moved Milli._ to IO.
This commit is contained in:
@@ -9,7 +9,7 @@ import java.io.File
|
||||
import sbt.io.{ IO, Path }
|
||||
import sbt.io.syntax._
|
||||
import Path._
|
||||
import sbt.io.Milli.getModifiedTime
|
||||
import sbt.io.IO.getModifiedTime
|
||||
|
||||
class FileCommands(baseDirectory: File) extends BasicStatementHandler {
|
||||
lazy val commands = commandMap
|
||||
@@ -68,8 +68,7 @@ class FileCommands(baseDirectory: File) extends BasicStatementHandler {
|
||||
def newer(a: String, b: String): Unit = {
|
||||
val pathA = fromString(a)
|
||||
val pathB = fromString(b)
|
||||
val isNewer = pathA.exists && (!pathB.exists || getModifiedTime(pathA) > getModifiedTime(
|
||||
pathB))
|
||||
val isNewer = pathA.exists && (!pathB.exists || getModifiedTime(pathA) > getModifiedTime(pathB))
|
||||
if (!isNewer) {
|
||||
scriptError(s"$pathA is not newer than $pathB")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user