src/Pure/Admin/build_log.scala
changeset 64297 12a47f263122
parent 64296 544481988e65
child 64298 0f000101652a
equal deleted inserted replaced
64296:544481988e65 64297:12a47f263122
    28       new java.lang.Long((date.time - date.midnight.time).ms / 1000))
    28       new java.lang.Long((date.time - date.midnight.time).ms / 1000))
    29 
    29 
    30   def log_subdir(date: Date): Path =
    30   def log_subdir(date: Date): Path =
    31     Path.explode("log") + Path.explode(date.rep.getYear.toString)
    31     Path.explode("log") + Path.explode(date.rep.getYear.toString)
    32 
    32 
    33   def log_filename(engine: String, date: Date, more: String*): Path =
    33   def log_filename(engine: String, date: Date, more: List[String] = Nil): Path =
    34     Path.explode((engine :: log_date(date) :: more.toList).mkString("", "_", ".log"))
    34     Path.explode((engine :: log_date(date) :: more).mkString("", "_", ".log"))
    35 
    35 
    36 
    36 
    37   /* log file collections */
    37   /* log file collections */
    38 
    38 
    39   def is_log(file: JFile): Boolean =
    39   def is_log(file: JFile): Boolean =
   245 
   245 
   246   /** meta info **/
   246   /** meta info **/
   247 
   247 
   248   object Field
   248   object Field
   249   {
   249   {
       
   250     val build_tags = "build_tags"
   250     val build_group_id = "build_group_id"
   251     val build_group_id = "build_group_id"
   251     val build_id = "build_id"
   252     val build_id = "build_id"
   252     val build_engine = "build_engine"
   253     val build_engine = "build_engine"
   253     val build_host = "build_host"
   254     val build_host = "build_host"
   254     val build_start = "build_start"
   255     val build_start = "build_start"