diff options
Diffstat (limited to 'main/src/mill/main/MainModule.scala')
-rw-r--r-- | main/src/mill/main/MainModule.scala | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/main/src/mill/main/MainModule.scala b/main/src/mill/main/MainModule.scala index 929ad3dc..a740a2e6 100644 --- a/main/src/mill/main/MainModule.scala +++ b/main/src/mill/main/MainModule.scala @@ -2,7 +2,6 @@ package mill.main import java.util.concurrent.LinkedBlockingQueue -import ammonite.ops.Path import mill.T import mill.define.{NamedTask, Task} import mill.eval.{Evaluator, PathRef, Result} @@ -200,7 +199,7 @@ trait MainModule extends mill.Module{ val KeepPattern = "(mill-.+)".r.anchored - def keepPath(path: Path) = path.segments.lastOption match { + def keepPath(path: os.Path) = path.segments.toSeq.lastOption match { case Some(KeepPattern(_)) => true case _ => false } @@ -220,7 +219,7 @@ trait MainModule extends mill.Module{ case Left(err) => Result.Failure(err) case Right(paths) => - paths.foreach(ammonite.ops.rm) + paths.foreach(os.remove.all) Result.Success(()) } } @@ -245,7 +244,7 @@ trait MainModule extends mill.Module{ } } - private type VizWorker = (LinkedBlockingQueue[(scala.Seq[_], scala.Seq[_], Path)], + private type VizWorker = (LinkedBlockingQueue[(scala.Seq[_], scala.Seq[_], os.Path)], LinkedBlockingQueue[Result[scala.Seq[PathRef]]]) private def visualize0(evaluator: Evaluator, targets: Seq[String], ctx: Ctx, vizWorker: VizWorker, |