OutputTask to be able to exclude files & folders
I want to be able to output the bin folder but exclude one of the subfolders, or a specific file. Or another example would be to exclude the .svn folders.
I thought about something like:
output :release => [:binaries, :build] do |out|
out.from '.'
out.to 'out'
out.dir 'bin', :unless => ["./StructureMap", 'Web.config', '*.pdb']
or maybe:
output :release => [:binaries, :build] do |out|
out.from '.'
out.to 'out'
out.exclude ["./.svn","./_svn","*.cs"]
out.dir 'bin'
or maybe even both of them, with the out.exclude being a general exclusion.
Perhaps another option could be to use the FileList[ ... ].exclude("./StructureMap") syntax for the output task. This could be done as a refactoring to the output task.
I really like the idea of doing larger filesets. Not sure how to implement the syntax from haf. But I'm going to take a stab at adapting my Dir.glob using version to his.
If you pass the FileList to the output task you can make the output task enumerate the contents of the FileList.