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
e708d5fa
Commit
e708d5fa
authored
Nov 05, 2014
by
Peter van 't Hof
Browse files
Reading of config files now in BiopetExecutable
parent
e722a305
Changes
2
Hide whitespace changes
Inline
Side-by-side
biopet-framework/src/main/scala/nl/lumc/sasc/biopet/core/BiopetExecutable.scala
View file @
e708d5fa
package
nl.lumc.sasc.biopet.core
import
java.io.File
import
java.util.Properties
import
nl.lumc.sasc.biopet.core.config.Config
import
org.apache.log4j.Logger
object
BiopetExecutable
extends
Logging
{
...
...
@@ -82,6 +84,11 @@ object BiopetExecutable extends Logging {
return
command
.
get
}
// Read config files
for
(
t
<-
0
until
args
.
size
)
{
if
(
args
(
t
)
==
"-config"
||
args
(
t
)
==
"--config_ile"
)
Config
.
global
.
loadConfigFile
(
new
File
(
args
(
t
+
1
)))
}
args
match
{
case
Array
(
"version"
)
=>
{
println
(
"version: "
+
getVersion
)
...
...
biopet-framework/src/main/scala/nl/lumc/sasc/biopet/core/BiopetQScript.scala
View file @
e708d5fa
...
...
@@ -25,7 +25,6 @@ trait BiopetQScript extends Configurable {
var
functions
:
Seq
[
QFunction
]
final
def
script
()
{
for
(
file
<-
configfiles
)
Config
.
global
.
loadConfigFile
(
file
)
if
(!
outputDir
.
endsWith
(
"/"
))
outputDir
+=
"/"
init
biopetScript
...
...
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