Why is it overkill here, but not for Import-Package? Seems to me the kind of use cases it is useful in are the same.
In the meantime I decided to move the file to a different spot.
The problem I see is that when there are certain files that should be excluded (and you cannot move these files) is that you have to make a very long list of directives that describe the whole folder tree surrounding the resource to be excluded. And worse still, every time you move, rename or add a folder in this tree you have to update the Include-Resource.
For my simple example, the solution (if you can't move the file) would be:
Include-Resource: \
my/folder1/subA=src/my/folder1/subA;recursive:=true;filter:=*.txt,\
my/folder2=src/my/folder2;recursive:=true;filter:=*.txt
Now this is still simple, but once we start adding folders this list will grow quickly. And if the file is deep in the tree, or in a folder whose parent contains many sub folders, we may end up with a very long list indeed.
Not trying to pressure you into implementing it, just wondering why you see differences between Import-Package and Include-Resource for this scenario.
-Stijn
Op dinsdag 26 november 2013 17:01:28 UTC+1 schreef Peter Kriens: