equal
deleted
inserted
replaced
23 { |
23 { |
24 def read(name: String): Export.Entry = |
24 def read(name: String): Export.Entry = |
25 db_context.get_export(List(session), theory, name) |
25 db_context.get_export(List(session), theory, name) |
26 |
26 |
27 def read_xml(name: String): XML.Body = |
27 def read_xml(name: String): XML.Body = |
28 db_context.xml_cache.body(YXML.parse_body( |
28 db_context.cache.body(YXML.parse_body( |
29 Symbol.output(unicode_symbols, UTF8.decode_permissive(read(name).uncompressed)))) |
29 Symbol.output(unicode_symbols, UTF8.decode_permissive(read(name).uncompressed)))) |
30 |
30 |
31 (read(Export.DOCUMENT_ID).text, split_lines(read(Export.FILES).text)) match { |
31 (read(Export.DOCUMENT_ID).text, split_lines(read(Export.FILES).text)) match { |
32 case (Value.Long(id), thy_file :: blobs_files) => |
32 case (Value.Long(id), thy_file :: blobs_files) => |
33 val node_name = resources.file_node(Path.explode(thy_file), theory = theory) |
33 val node_name = resources.file_node(Path.explode(thy_file), theory = theory) |
232 else Nil |
232 else Nil |
233 |
233 |
234 val resources = new Resources(sessions_structure, base, command_timings = command_timings0) |
234 val resources = new Resources(sessions_structure, base, command_timings = command_timings0) |
235 val session = |
235 val session = |
236 new Session(options, resources) { |
236 new Session(options, resources) { |
237 override val xml_cache: XML.Cache = store.xml_cache |
237 override val cache: XML.Cache = store.cache |
238 override val xz_cache: XZ.Cache = store.xz_cache |
|
239 |
238 |
240 override def build_blobs_info(name: Document.Node.Name): Command.Blobs_Info = |
239 override def build_blobs_info(name: Document.Node.Name): Command.Blobs_Info = |
241 { |
240 { |
242 result_base.load_commands.get(name.expand) match { |
241 result_base.load_commands.get(name.expand) match { |
243 case Some(spans) => |
242 case Some(spans) => |
260 catch { case _: IllegalStateException => } |
259 catch { case _: IllegalStateException => } |
261 } |
260 } |
262 } |
261 } |
263 |
262 |
264 val export_consumer = |
263 val export_consumer = |
265 Export.consumer(store.open_database(session_name, output = true), store.xz_cache) |
264 Export.consumer(store.open_database(session_name, output = true), store.cache) |
266 |
265 |
267 val stdout = new StringBuilder(1000) |
266 val stdout = new StringBuilder(1000) |
268 val stderr = new StringBuilder(1000) |
267 val stderr = new StringBuilder(1000) |
269 val command_timings = new mutable.ListBuffer[Properties.T] |
268 val command_timings = new mutable.ListBuffer[Properties.T] |
270 val theory_timings = new mutable.ListBuffer[Properties.T] |
269 val theory_timings = new mutable.ListBuffer[Properties.T] |