Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Podspec - Exclude all but a subfolder

I have a structure like this

target_files/
├──target1/
├──target2/
└──target3/

And I want to include only "target2" for example and exclude the other targets. How I write the spec.exclude_files?

I found this example for excluding files, but I can't understand how to write it for whole folders.

spec.exclude_files = '_private/**/*.{h,m}'

like image 688
Alberto Schiariti Avatar asked Jan 12 '18 10:01

Alberto Schiariti


1 Answers

spec.source_files = [ 'target_files/**' ]
spec.exclude_files = [ 'target_files/target1/**', 'target_files/target3/**' ]

or for the case you ask about, more simply:

spec.source_files = [ 'target_files/target2/**' ]

Reference

like image 142
Paul Beusterien Avatar answered Nov 09 '22 23:11

Paul Beusterien