From 3a43d201421c543822eaf035bb695e74f0b31662 Mon Sep 17 00:00:00 2001 From: ceefour Date: Wed, 12 Oct 2011 18:39:03 -0700 Subject: [PATCH] exclude source files by name --- Classpaths.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Classpaths.md b/Classpaths.md index 4f2d514..033a6ce 100644 --- a/Classpaths.md +++ b/Classpaths.md @@ -65,6 +65,14 @@ The `task` method is used to refer to the actual task instead of the result of t For resources, there are similar keys `resourceGenerators` and `resourceManaged`. +### Excluding source files by name + +The project base directory is by default a source directory in addition to `src/main/scala`. You can exclude source files by name (`butler.scala` in the example below) like: + + excludeFilter in unmanagedSources := "butler.scala" + +Read more on [How to exclude .scala source file in project folder - Google Groups](http://groups.google.com/group/simple-build-tool/browse_thread/thread/cd5332a164405568?hl=en) + ## External v. internal Classpaths are also divided into internal and external dependencies.