equal
deleted
inserted
replaced
12 import java.util.{Properties => JProperties} |
12 import java.util.{Properties => JProperties} |
13 |
13 |
14 |
14 |
15 abstract class CI_Profile extends Isabelle_Tool.Body |
15 abstract class CI_Profile extends Isabelle_Tool.Body |
16 { |
16 { |
17 |
|
18 private def print_variable(name: String): Unit = |
|
19 { |
|
20 val value = Isabelle_System.getenv_strict(name) |
|
21 println(name + "=" + Outer_Syntax.quote_string(value)) |
|
22 } |
|
23 |
|
24 private def build(options: Options): (Build.Results, Time) = |
17 private def build(options: Options): (Build.Results, Time) = |
25 { |
18 { |
26 val progress = new Console_Progress(true) |
19 val progress = new Console_Progress(true) |
27 val start_time = Time.now() |
20 val start_time = Time.now() |
28 val results = progress.interrupt_handler { |
21 val results = progress.interrupt_handler { |
80 |
73 |
81 |
74 |
82 override final def apply(args: List[String]): Unit = |
75 override final def apply(args: List[String]): Unit = |
83 { |
76 { |
84 print_section("CONFIGURATION") |
77 print_section("CONFIGURATION") |
85 List("ML_PLATFORM", "ML_HOME", "ML_SYSTEM", "ML_OPTIONS").foreach(print_variable) |
78 Build.ml_options.foreach(opt => println(opt + "=" + quote(Isabelle_System.getenv(opt)))) |
86 val props = load_properties() |
79 val props = load_properties() |
87 System.getProperties().putAll(props) |
80 System.getProperties().putAll(props) |
88 |
81 |
89 val options = |
82 val options = |
90 Options.init() |
83 Options.init() |
141 |
134 |
142 def pre_hook(args: List[String]): Unit |
135 def pre_hook(args: List[String]): Unit |
143 def post_hook(results: Build.Results): Unit |
136 def post_hook(results: Build.Results): Unit |
144 |
137 |
145 def select_sessions(tree: Sessions.Tree): (List[String], Sessions.Tree) |
138 def select_sessions(tree: Sessions.Tree): (List[String], Sessions.Tree) |
146 |
|
147 } |
139 } |