All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.scalajs.testing.common.TaskInfo.scala Maven / Gradle / Ivy

There is a newer version: 1.16.0
Show newest version
/*
 * Scala.js (https://www.scala-js.org/)
 *
 * Copyright EPFL.
 *
 * Licensed under Apache License 2.0
 * (https://www.apache.org/licenses/LICENSE-2.0).
 *
 * See the NOTICE file distributed with this work for
 * additional information regarding copyright ownership.
 */

package org.scalajs.testing.common

import sbt.testing._

private[testing] final class TaskInfo(
    val serializedTask: String,
    val taskDef: TaskDef,
    val tags: List[String])

private[testing] object TaskInfo {
  implicit object TaskInfoSerializer extends Serializer[TaskInfo] {
    def serialize(x: TaskInfo, out: Serializer.SerializeState): Unit = {
      out.write(x.serializedTask)
      out.write(x.taskDef)
      out.write(x.tags)
    }

    def deserialize(in: Serializer.DeserializeState): TaskInfo =
      new TaskInfo(in.read[String](), in.read[TaskDef](), in.read[List[String]]())
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy