Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mirrors
biopet.biopet
Commits
3d7a6bff
Commit
3d7a6bff
authored
Jul 27, 2015
by
Peter van 't Hof
Browse files
.yml also handled as YAML config files
parent
0c466159
Changes
1
Hide whitespace changes
Inline
Side-by-side
public/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/utils/ConfigUtils.scala
View file @
3d7a6bff
...
...
@@ -102,7 +102,7 @@ object ConfigUtils extends Logging {
def
fileToConfigMap
(
configFile
:
File
)
:
Map
[
String
,
Any
]
=
{
val
configMap
=
{
if
(
configFile
.
getName
.
endsWith
(
".yaml"
))
yamlToMap
(
configFile
)
if
(
configFile
.
getName
.
endsWith
(
".yaml"
)
||
configFile
.
getName
.
endsWith
(
".yml"
)
)
yamlToMap
(
configFile
)
else
jsonToMap
(
fileToJson
(
configFile
))
}
logger
.
debug
(
"Contain: "
+
configMap
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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