Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OutputTask to be able to exclude files & folders #169

Open
little-chief opened this issue Sep 2, 2011 · 3 comments
Open

OutputTask to be able to exclude files & folders #169

little-chief opened this issue Sep 2, 2011 · 3 comments

Comments

@little-chief
Copy link

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.

@haf
Copy link
Collaborator

haf commented Jan 31, 2012

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.

@developingchris
Copy link

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.

@haf
Copy link
Collaborator

haf commented Feb 15, 2012

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants