Any way to specify list of directories that sbt should ignore?

68 views
Skip to first unread message

Byron Gibson

unread,
Aug 26, 2012, 10:21:15 PM8/26/12
to simple-b...@googlegroups.com
For example, I tend to make "archive" directories for stashing stuff I may want to refer to but not actively use in my project.  I also have vim configured to create a "vim~" temp directory in any directory I edit files in.  Is there a way to tell sbt to ignore those two wherever it finds them?

Mark Harrah

unread,
Aug 30, 2012, 6:17:43 AM8/30/12
to simple-b...@googlegroups.com
excludeFilter is a setting of type FileFilter. The default excludes hidden files (the names starts with a period or is marked as hidden). There are some conveniences for constructing the filter, such as ||, &&, or --. For example,

excludeFilter := (".*" -- ".") || "vim~" || HiddenFileFilter

(HiddenFileFilter matches based on File.isHidden)

-Mark

> --
> 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/-/K3s3XNBbeCEJ.
> 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