When I do sbt run
I see some header and footer info which I would like to get rid of:
$ sbt run
[info] Set current project to XXX (in build file:/path/to/dir/)
<actual program output goes here; stuff I care about>
[success] Total time: 68 s, completed Apr 1, 2012 7:30:45 PM
$
How can I get rid of those 2 additional lines (i.e., the [info]
and [success]
lines)? Are there some build.sbt
configuration settings available to do that? Ideally I don't want to have another tool/dependency just to get rid of those 2 lines.
Following is a list of things I have tried:
- Set run logLevel to Warn
- Set Global logLevel to Warn
- Set
-Dsbt.log.noformat=true
Workaround that I am currently using:
Copy the java
invocation that sbt
generates (by doing ps
or top
) as a result of doing fork in run := true
and manually run that java
command directly on command line.
It would best and much cleaner if sbt
can be told not to print those lines.
- Scala version: 2.9.1
- SBT version: 0.11.1
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…