src/Pure/System/scala.scala
changeset 75695 14e22b525b13
parent 75681 83b976c3edb1
child 75699 0a71b6c903e9
--- a/src/Pure/System/scala.scala	Sat Jul 23 12:19:45 2022 +0200
+++ b/src/Pure/System/scala.scala	Mon Jul 25 11:19:08 2022 +0200
@@ -100,9 +100,11 @@
 
   /** compiler **/
 
-  def get_classpath(): List[String] =
-    space_explode(JFile.pathSeparatorChar, System.getProperty("java.class.path", ""))
-      .filter(_.nonEmpty)
+  def get_classpath(): List[Path] =
+    for {
+      s <- space_explode(JFile.pathSeparatorChar, System.getProperty("java.class.path", ""))
+      if s.nonEmpty
+    } yield Path.explode(File.standard_path(s))
 
   object Compiler {
     object Message {