Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
biopet.biopet
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Mirrors
biopet.biopet
Commits
972ad0f3
Commit
972ad0f3
authored
Oct 29, 2015
by
Wai Yi Leung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix resource copy for the report
parent
2f92eb6d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
public/biopet-core/src/main/scala/nl/lumc/sasc/biopet/core/report/ReportBuilder.scala
...scala/nl/lumc/sasc/biopet/core/report/ReportBuilder.scala
+4
-2
public/gears/src/main/scala/nl/lumc/sasc/biopet/pipelines/gears/GearsReport.scala
...ala/nl/lumc/sasc/biopet/pipelines/gears/GearsReport.scala
+1
-1
No files found.
public/biopet-core/src/main/scala/nl/lumc/sasc/biopet/core/report/ReportBuilder.scala
View file @
972ad0f3
...
...
@@ -97,6 +97,8 @@ trait ReportBuilder extends ToolCommand {
private
var
_libId
:
Option
[
String
]
=
None
protected
def
libId
=
_libId
case
class
ExtFile
(
resourcePath
:
String
,
targetPath
:
String
)
def
extFiles
=
List
(
"css/bootstrap_dashboard.css"
,
"css/bootstrap.min.css"
,
...
...
@@ -108,7 +110,7 @@ trait ReportBuilder extends ToolCommand {
"fonts/glyphicons-halflings-regular.woff"
,
"fonts/glyphicons-halflings-regular.ttf"
,
"fonts/glyphicons-halflings-regular.woff2"
).
map
(
"/nl/lumc/sasc/biopet/core/report/ext/"
+
_
)
).
map
(
x
=>
ExtFile
(
"/nl/lumc/sasc/biopet/core/report/ext/"
+
x
,
x
)
)
/** Main function to for building the report */
def
main
(
args
:
Array
[
String
])
:
Unit
=
{
...
...
@@ -140,7 +142,7 @@ trait ReportBuilder extends ToolCommand {
val
extOutputDir
:
File
=
new
File
(
cmdArgs
.
outputDir
,
"ext"
)
for
(
resource
<-
extFiles
.
par
)
{
IoUtils
.
copyStreamToFile
(
getClass
.
getResourceAsStream
(
resource
),
new
File
(
extOutputDir
,
resource
),
createDirs
=
true
)
IoUtils
.
copyStreamToFile
(
getClass
.
getResourceAsStream
(
resource
.
resourcePath
),
new
File
(
extOutputDir
,
resource
.
targetPath
),
createDirs
=
true
)
}
logger
.
info
(
"Parsing summary"
)
...
...
public/gears/src/main/scala/nl/lumc/sasc/biopet/pipelines/gears/GearsReport.scala
View file @
972ad0f3
...
...
@@ -16,7 +16,7 @@ object GearsReport extends ReportBuilder {
override
def
extFiles
=
super
.
extFiles
++
List
(
"js/gears.js"
).
map
(
"/nl/lumc/sasc/biopet/pipelines/gears/report/ext/"
+
_
)
).
map
(
x
=>
ExtFile
(
"/nl/lumc/sasc/biopet/pipelines/gears/report/ext/"
+
x
,
x
)
)
def
indexPage
=
{
ReportPage
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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