equal
deleted
inserted
replaced
186 strict: Boolean = true |
186 strict: Boolean = true |
187 ): Process_Result = { |
187 ): Process_Result = { |
188 val args1 = Bash.string(host) + " " + Bash.string("export USER_HOME=\"$HOME\"\n" + cmd_line) |
188 val args1 = Bash.string(host) + " " + Bash.string("export USER_HOME=\"$HOME\"\n" + cmd_line) |
189 run_command("ssh", args = args1, progress_stdout = progress_stdout, |
189 run_command("ssh", args = args1, progress_stdout = progress_stdout, |
190 progress_stderr = progress_stderr, strict = strict) |
190 progress_stderr = progress_stderr, strict = strict) |
|
191 } |
|
192 |
|
193 override def download_file( |
|
194 url_name: String, |
|
195 file: Path, |
|
196 progress: Progress = new Progress |
|
197 ): Unit = { |
|
198 val cmd_line = |
|
199 File.read(Path.explode("~~/lib/scripts/download_file")) + "\n" + |
|
200 "download_file " + Bash.string(url_name) + " " + bash_path(file) |
|
201 execute(cmd_line, |
|
202 progress_stdout = progress.echo, |
|
203 progress_stderr = progress.echo).check |
191 } |
204 } |
192 |
205 |
193 override lazy val isabelle_platform: Isabelle_Platform = Isabelle_Platform(ssh = Some(ssh)) |
206 override lazy val isabelle_platform: Isabelle_Platform = Isabelle_Platform(ssh = Some(ssh)) |
194 |
207 |
195 |
208 |
353 progress_stdout = progress_stdout, |
366 progress_stdout = progress_stdout, |
354 progress_stderr = progress_stderr, |
367 progress_stderr = progress_stderr, |
355 env = if (settings) Isabelle_System.settings() else null, |
368 env = if (settings) Isabelle_System.settings() else null, |
356 strict = strict) |
369 strict = strict) |
357 |
370 |
|
371 def download_file(url_name: String, file: Path, progress: Progress = new Progress): Unit = |
|
372 Isabelle_System.download_file(url_name, file, progress = progress) |
|
373 |
358 def isabelle_platform: Isabelle_Platform = Isabelle_Platform() |
374 def isabelle_platform: Isabelle_Platform = Isabelle_Platform() |
359 } |
375 } |
360 |
376 |
361 object Local extends System |
377 object Local extends System |
362 } |
378 } |