Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tapasco
tapasco
Commits
47415f44
Commit
47415f44
authored
Jul 16, 2016
by
Jens Korinth
Browse files
CoreDefinition: another bugfix
parent
723c66e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
CoreDefinition.scala
View file @
47415f44
...
...
@@ -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
]
~
...
...
Jens Korinth
@jk
mentioned in commit
17f0d672
·
Mar 05, 2018
mentioned in commit
17f0d672
mentioned in commit 17f0d67240ebf5d7e1d0be9162d272b04256c47d
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment