Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tapasco
tapasco
Commits
f736501a
Commit
f736501a
authored
Oct 29, 2018
by
Lukas Sommer
Browse files
Modify ProcessIO to capture output instead of closing pipe;
parent
a12cda0c
Pipeline
#665
passed with stage
in 9 minutes and 39 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
.gitignore
View file @
f736501a
...
...
@@ -49,3 +49,4 @@ bin/tapasco-reportviewer
.Xil/
webtalk.*
nf_sume_ddr3A.prj
.idea
src/main/scala/tapasco/activity/EvaluateIP.scala
View file @
f736501a
...
...
@@ -50,11 +50,19 @@ object EvaluateIP {
/** Template for the out-of-context synth+PnR script. */
final
val
tclTemplate
=
Common
.
commonDir
.
resolve
(
"evaluate_ip.tcl.template"
)
// custom ProcessIO: ignore everything
def
captureProcessOutput
(
input
:
java.io.InputStream
)
:
Unit
=
{
val
buffer
=
new
Array
[
Byte
](
1024
)
val
stringBuilder
:
StringBuilder
=
new
StringBuilder
Stream
.
continually
(
input
.
read
(
buffer
)).
takeWhile
(
_
!=
-
1
).
foreach
(
stringBuilder
.
append
(
buffer
,
0
,
_
))
logger
.
debug
(
stringBuilder
.
toString
())
input
.
close
()
}
// custom ProcessIO: Write stdout and stderr to DEBUG-level log.
private
final
val
io
=
new
ProcessIO
(
stdin
=>
{
stdin
.
close
()},
stdout
=>
{
stdout
.
close
()}
,
stderr
=>
{
stderr
.
close
()}
captureProcessOutput
,
captureProcessOutput
)
/** Managment of temporary files, directories, reports. */
...
...
Write
Preview
Supports
Markdown
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