src/Pure/Tools/server.scala
changeset 67178 70576478bda9
parent 66929 c19b17b72777
child 67784 543e36ae489c
equal deleted inserted replaced
67177:af5b89bc065c 67178:70576478bda9
   132       val more_args = getopts(args)
   132       val more_args = getopts(args)
   133       if (more_args.nonEmpty) getopts.usage()
   133       if (more_args.nonEmpty) getopts.usage()
   134 
   134 
   135       if (operation_list) {
   135       if (operation_list) {
   136         for (entry <- using(SQLite.open_database(Data.database))(list(_)) if entry.active)
   136         for (entry <- using(SQLite.open_database(Data.database))(list(_)) if entry.active)
   137           Console.println(entry.print)
   137           Output.writeln(entry.print, stdout = true)
   138       }
   138       }
   139       else {
   139       else {
   140         val (entry, thread) = start(name, port)
   140         val (entry, thread) = start(name, port)
   141         Console.println(entry.print)
   141         Output.writeln(entry.print, stdout = true)
   142         thread.foreach(_.join)
   142         thread.foreach(_.join)
   143       }
   143       }
   144     })
   144     })
   145 }
   145 }
   146 
   146