virtualeyes
virtualeyes

Reputation: 11237

SBT: view class file summary during compilation?

Trying to see exactly what source files are being compiled during full & incremental builds.

As it stands I see a summary a la "X number of Scala and Y number of Java files" being compiled, which is great, but exactly which files are being compiled?

set logLevel in Global := Level.Debug

does nothing useful (that I can see)

set scalacOptions in Compile += "-print"

is more helpful, it prints out the internet...I mean, tons of generated code, which does contain the class names, just not so easy to sift through.

Basically looking to get a summary of files being compiled.

Perhaps there's a non-verbose option to the above scalac flag?

Upvotes: 8

Views: 649

Answers (2)

Janek Bogucki
Janek Bogucki

Reputation: 5123

Try -verbose. This shows which classes are being parsed,

[ERROR] [parsing Tapnon.scala]
[ERROR] [parsing Tapnonics.scala]
[ERROR] [parsing package.scala]
[ERROR] [parsing EvenlyScorer.scala]

Upvotes: 2

thoredge
thoredge

Reputation: 12591

I don't know of any options that would permit that, but it would probably be the simplest compiler plugin you could write (http://www.scala-lang.org/node/140).

Upvotes: 2

Related Questions