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
e6c8bfa8
Commit
e6c8bfa8
authored
9 years ago
by
Peter van 't Hof
Browse files
Options
Downloads
Patches
Plain Diff
fixed dependencies foe summary
parent
4d479f00
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
public/biopet-core/src/main/scala/nl/lumc/sasc/biopet/core/summary/SummaryQScript.scala
+19
-16
19 additions, 16 deletions
...ala/nl/lumc/sasc/biopet/core/summary/SummaryQScript.scala
with
19 additions
and
16 deletions
public/biopet-core/src/main/scala/nl/lumc/sasc/biopet/core/summary/SummaryQScript.scala
+
19
−
16
View file @
e6c8bfa8
...
...
@@ -96,22 +96,25 @@ trait SummaryQScript extends BiopetQScript { qscript =>
val
writeSummary
=
new
WriteSummary
(
this
)
def
addChecksum
(
file
:
File
)
:
Unit
=
{
if
(
writeSummary
.
md5sum
&&
!
SummaryQScript
.
md5sumCache
.
contains
(
file
))
{
val
md5sum
=
new
Md5sum
(
this
)
{
override
def
configName
=
"md5sum"
override
def
cmdLine
:
String
=
super
.
cmdLine
+
" || "
+
required
(
"echo"
)
+
required
(
"error_on_capture "
+
input
.
toString
)
+
" > "
+
required
(
output
)
}
md5sum
.
input
=
file
md5sum
.
output
=
new
File
(
file
.
getParentFile
,
file
.
getName
+
".md5"
)
// Need to not write a md5 file outside the outputDir
if
(!
file
.
getAbsolutePath
.
startsWith
(
outputDir
.
getAbsolutePath
))
md5sum
.
output
=
new
File
(
outputDir
,
".md5"
+
file
.
getAbsolutePath
+
".md5"
)
writeSummary
.
deps
:+=
md5sum
.
output
SummaryQScript
.
md5sumCache
+=
file
->
md5sum
.
output
add
(
md5sum
)
if
(
writeSummary
.
md5sum
)
{
if
(!
SummaryQScript
.
md5sumCache
.
contains
(
file
))
{
val
md5sum
=
new
Md5sum
(
this
)
{
override
def
configName
=
"md5sum"
override
def
cmdLine
:
String
=
super
.
cmdLine
+
" || "
+
required
(
"echo"
)
+
required
(
"error_on_capture "
+
input
.
toString
)
+
" > "
+
required
(
output
)
}
md5sum
.
input
=
file
md5sum
.
output
=
new
File
(
file
.
getParentFile
,
file
.
getName
+
".md5"
)
// Need to not write a md5 file outside the outputDir
if
(!
file
.
getAbsolutePath
.
startsWith
(
outputDir
.
getAbsolutePath
))
md5sum
.
output
=
new
File
(
outputDir
,
".md5"
+
file
.
getAbsolutePath
+
".md5"
)
writeSummary
.
deps
:+=
md5sum
.
output
SummaryQScript
.
md5sumCache
+=
file
->
md5sum
.
output
add
(
md5sum
)
}
else
writeSummary
.
deps
:+=
SummaryQScript
.
md5sumCache
(
file
)
}
//TODO: add more checksums types
}
...
...
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