src/Pure/System/isabelle_platform.scala
changeset 72339 626920749f5d
parent 72338 54871a086193
child 72340 676066aa4798
--- a/src/Pure/System/isabelle_platform.scala	Tue Sep 29 19:49:25 2020 +0200
+++ b/src/Pure/System/isabelle_platform.scala	Tue Sep 29 19:54:59 2020 +0200
@@ -26,20 +26,19 @@
       File.read(Path.explode("~~/lib/scripts/isabelle-platform")) + "\n" +
       settings.map(a => "echo \"" + Bash.string(a) + "=$" + Bash.string(a) + "\"").mkString("\n")
     val result = ssh.execute("bash -c " + Bash.string(script)).check
-    val values =
+    new Isabelle_Platform(
       result.out_lines.map(line =>
         space_explode('=', line) match {
           case List(a, b) => (a, b)
           case _ => error("Bad output: " + quote(result.out))
-        })
-    new Isabelle_Platform(values)
+        }))
   }
 }
 
-class Isabelle_Platform private(values: List[(String, String)])
+class Isabelle_Platform private(val settings: List[(String, String)])
 {
   private def get(name: String): String =
-    values.collectFirst({ case (a, b) if a == name => b }).
+    settings.collectFirst({ case (a, b) if a == name => b }).
       getOrElse(error("Bad platform settings variable: " + quote(name)))
 
   val ISABELLE_PLATFORM_FAMILY: String = get("ISABELLE_PLATFORM_FAMILY")