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
8fbf2803
Commit
8fbf2803
authored
Mar 05, 2015
by
bow
Browse files
Merge branch 'patch-executable_check' into 'develop'
Patch executable check See merge request !114
parents
27035485
043874a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
public/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/core/BiopetCommandLineFunctionTrait.scala
View file @
8fbf2803
...
...
@@ -73,6 +73,9 @@ trait BiopetCommandLineFunctionTrait extends CommandLineFunction with Configurab
super
.
freezeFieldValues
()
}
/** can override this value is executable may not be converted to CanonicalPath */
val
executableToCanonicalPath
=
true
/**
* Checks executable. Follow full CanonicalPath, checks if it is existing and do a md5sum on it to store in job report
*/
...
...
@@ -87,7 +90,8 @@ trait BiopetCommandLineFunctionTrait extends CommandLineFunction with Configurab
if
(
process
.
exitValue
==
0
)
{
executable
=
buffer
.
toString
val
file
=
new
File
(
executable
)
executable
=
file
.
getCanonicalPath
if
(
executableToCanonicalPath
)
executable
=
file
.
getCanonicalPath
else
executable
=
file
.
getAbsolutePath
}
else
{
BiopetQScript
.
addError
(
"executable: '"
+
executable
+
"' not found, please check config"
)
}
...
...
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