Commit 47415f44 authored by Jens Korinth's avatar Jens Korinth
Browse files

CoreDefinition: another bugfix

parent 723c66e4
......@@ -21,15 +21,9 @@ case class CoreDefinition(name: String, vendor: String, library: String, version
* Contains methods for reading a core definition from Json.
**/
object CoreDefinition {
/** Alternative constructor: supplies root dir as ip/<name>. **/
def apply(name: String, vendor: String, library: String, version: String): CoreDefinition =
CoreDefinition(
name,
vendor,
library,
version,
/** Provide automatic IP directory for given name. **/
def root(name: String): String =
java.nio.file.Paths.get(".").toAbsolutePath.resolveSibling("ip").resolve(name).toString
)
implicit val coreDefinitionWrites : Writes[CoreDefinition] = (
(JsPath \ "name").write[String] ~
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment