src/Pure/System/isabelle_system.scala
changeset 64220 e7cbf81ec4b7
parent 64213 b265dd04d57d
child 64228 b46969a851a9
--- a/src/Pure/System/isabelle_system.scala	Sat Oct 15 11:26:31 2016 +0200
+++ b/src/Pure/System/isabelle_system.scala	Sat Oct 15 11:38:03 2016 +0200
@@ -202,10 +202,10 @@
     file
   }
 
-  def with_tmp_file[A](name: String, ext: String = "")(body: JFile => A): A =
+  def with_tmp_file[A](name: String, ext: String = "")(body: Path => A): A =
   {
     val file = tmp_file(name, ext)
-    try { body(file) } finally { file.delete }
+    try { body(File.path(file)) } finally { file.delete }
   }
 
 
@@ -245,10 +245,10 @@
     dir
   }
 
-  def with_tmp_dir[A](name: String)(body: JFile => A): A =
+  def with_tmp_dir[A](name: String)(body: Path => A): A =
   {
     val dir = tmp_dir(name)
-    try { body(dir) } finally { rm_tree(dir) }
+    try { body(File.path(dir)) } finally { rm_tree(dir) }
   }