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
7eb3ecdb
Commit
7eb3ecdb
authored
Apr 28, 2015
by
Peter van 't Hof
Browse files
Report builder in now in parallel
parent
51d189aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
public/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/core/report/ReportBuilder.scala
View file @
7eb3ecdb
...
...
@@ -4,7 +4,7 @@ import java.io.{ PrintWriter, File }
import
nl.lumc.sasc.biopet.core.ToolCommand
import
nl.lumc.sasc.biopet.core.summary.Summary
import
org.fusesource.scalate.TemplateEngine
import
org.fusesource.scalate.
{
TemplateSource
,
TemplateEngine
}
import
scala.io.Source
...
...
@@ -90,7 +90,7 @@ trait ReportBuilder extends ToolCommand {
writer
.
close
()
// Generating subpages
for
((
name
,
subPage
)
<-
page
.
subPages
)
{
for
((
name
,
subPage
)
<-
page
.
subPages
.
par
)
{
generatePage
(
summary
,
subPage
,
outputDir
,
path
:::
name
::
Nil
,
pageArgs
)
}
}
...
...
@@ -101,9 +101,6 @@ object ReportBuilder {
protected
val
engine
=
new
TemplateEngine
()
def
renderTemplate
(
location
:
String
,
args
:
Map
[
String
,
Any
])
:
String
=
{
val
templateText
=
Source
.
fromInputStream
(
getClass
.
getResourceAsStream
(
location
)).
getLines
().
mkString
(
"\n"
)
val
template
=
engine
.
compileText
(
"ssp"
,
templateText
)
engine
.
layout
(
template
.
source
,
args
)
engine
.
layout
(
TemplateSource
.
fromFile
(
getClass
.
getResource
(
location
).
getPath
),
args
)
}
}
\ No newline at end of file
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