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
6142593f
Commit
6142593f
authored
9 years ago
by
Peter van 't Hof
Browse files
Options
Downloads
Patches
Plain Diff
Added some more docs
parent
85a682d1
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
public/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/core/report/ReportBuilder.scala
+8
-3
8 additions, 3 deletions
...scala/nl/lumc/sasc/biopet/core/report/ReportBuilder.scala
with
8 additions
and
3 deletions
public/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/core/report/ReportBuilder.scala
+
8
−
3
View file @
6142593f
...
@@ -72,8 +72,7 @@ trait ReportBuilder extends ToolCommand {
...
@@ -72,8 +72,7 @@ trait ReportBuilder extends ToolCommand {
logger
.
info
(
"Copy Base files"
)
logger
.
info
(
"Copy Base files"
)
// Copying out the static files from this
// Static files that will be copied to the output folder, then file is added to [resourceDir] it's need to be added here also
val
extOutputDir
:
File
=
new
File
(
cmdArgs
.
outputDir
,
"ext"
)
val
extOutputDir
:
File
=
new
File
(
cmdArgs
.
outputDir
,
"ext"
)
val
resourceDir
:
String
=
"/nl/lumc/sasc/biopet/core/report/ext/"
val
resourceDir
:
String
=
"/nl/lumc/sasc/biopet/core/report/ext/"
val
extFiles
=
List
(
val
extFiles
=
List
(
...
@@ -156,7 +155,13 @@ object ReportBuilder {
...
@@ -156,7 +155,13 @@ object ReportBuilder {
private
var
templateCache
:
Map
[
String
,
File
]
=
Map
()
private
var
templateCache
:
Map
[
String
,
File
]
=
Map
()
def
renderTemplate
(
location
:
String
,
args
:
Map
[
String
,
Any
])
:
String
=
{
/**
* This method will render a template that is located in the classpath / jar
* @param location location in the classpath / jar
* @param args Additional arguments, not required
* @return Rendered result of template
*/
def
renderTemplate
(
location
:
String
,
args
:
Map
[
String
,
Any
]
=
Map
())
:
String
=
{
val
templateFile
:
File
=
templateCache
.
get
(
location
)
match
{
val
templateFile
:
File
=
templateCache
.
get
(
location
)
match
{
case
Some
(
template
)
=>
template
case
Some
(
template
)
=>
template
case
_
=>
{
case
_
=>
{
...
...
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