Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
biopet.biopet
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirrors
biopet.biopet
Commits
4ca753b0
Commit
4ca753b0
authored
10 years ago
by
Peter van 't Hof
Browse files
Options
Downloads
Patches
Plain Diff
Changed env variable for config to BIOPET_CONFIG
parent
7e7762a9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
biopet-framework/src/main/java/nl/lumc/sasc/biopet/core/Config.scala
+3
-3
3 additions, 3 deletions
...ework/src/main/java/nl/lumc/sasc/biopet/core/Config.scala
with
3 additions
and
3 deletions
biopet-framework/src/main/java/nl/lumc/sasc/biopet/core/Config.scala
+
3
−
3
View file @
4ca753b0
...
...
@@ -19,8 +19,8 @@ class Config(var map: Map[String,Any]) extends Logging {
logger
.
info
(
"Loading config file: "
+
file
)
loadConfigFile
(
file
)
}
else
logger
.
warn
(
"
QUEUE
_CONFIG value found but file does not exist, no global config is loaded"
)
}
else
logger
.
warn
(
"QUEUE
_CONFIG value not found, no global config is loaded"
)
else
logger
.
warn
(
"
BIOPET
_CONFIG value found but file does not exist, no global config is loaded"
)
}
else
logger
.
info
(
"BIOPET
_CONFIG value not found, no global config is loaded"
)
}
def
contains
(
s
:
String
)
:
Boolean
=
map
.
contains
(
s
)
...
...
@@ -29,7 +29,7 @@ class Config(var map: Map[String,Any]) extends Logging {
var
returnMap
:
Map
[
String
,
Any
]
=
Map
()
var
configJson
=
JSON
.
parseFull
(
scala
.
io
.
Source
.
fromFile
(
configFile
).
mkString
)
if
(
configJson
==
None
)
{
if
(
configJson
==
None
)
{
throw
new
IllegalStateException
(
"The config JSON file is either not properly formatted or not a JSON file, file: "
+
configFile
)
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment