Get java.io.File on compile:class-directory

9 views
Skip to first unread message

Andrew D Bate

unread,
Apr 22, 2013, 7:03:58 PM4/22/13
to simple-b...@googlegroups.com
Hello,

I am currently writing a custom task in which need an java.io.File object whose pathname is the directory reported by:

sbt show compile:class-directory

I have spent a couple of hours Googling to no avail.

Any help would be much appreciated.

Andrew

Andrew D Bate

unread,
Apr 23, 2013, 10:24:43 AM4/23/13
to simple-b...@googlegroups.com
SOLUTION: here is the relevant snippet for anyone else who is suffering:

(classDirectory in Compile) map { directory => 

      val outputDirectory: java.io.File = directory
Reply all
Reply to author
Forward
0 new messages