Albacore icon indicating copy to clipboard operation
Albacore copied to clipboard

OutputTask to be able to exclude files & folders

Open little-chief opened this issue 14 years ago • 3 comments

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.

little-chief avatar Sep 02 '11 12:09 little-chief

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.

haf avatar Jan 31 '12 12:01 haf

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.

developingchris avatar Feb 13 '12 21:02 developingchris

If you pass the FileList to the output task you can make the output task enumerate the contents of the FileList.

haf avatar Feb 15 '12 17:02 haf