Re: Adding scala files to classpath

201 views
Skip to first unread message

BR

unread,
Nov 2, 2012, 6:52:20 PM11/2/12
to simple-b...@googlegroups.com
I figured it out.

This is what I added to build.sbt:

(unmanagedSourceDirectories in Compile) := Seq(new File("src/main/scala"), new File("../Library"))

Library is the file outside of the project I wanted to add to the classpath.

On Friday, November 2, 2012 5:48:53 PM UTC-4, BR wrote:
Hello,
I'm just getting started with SBT and Scala, and was wondering if there is a way to add a folder of .scala files, located outside of the project folder, to the project's classpath? I read that this can be done with .jars, but can it be done with .scala files?
Thanks

Josh Suereth

unread,
Nov 2, 2012, 9:15:36 PM11/2/12
to simple-b...@googlegroups.com

Just a note, you could do:

(unmanagedSourceDirectories in Compile) <+= baseDirectory(_ / "Library")

If you just want to append the new directory to existing source directory setting.

Hope that helps!

--
You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
To view this discussion on the web visit https://groups.google.com/d/msg/simple-build-tool/-/KUJ_tgIQniQJ.
To post to this group, send email to simple-b...@googlegroups.com.
To unsubscribe from this group, send email to simple-build-t...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/simple-build-tool?hl=en.
Reply all
Reply to author
Forward
0 new messages