TomDmitriev / gradle-bundle-plugin

Apache License 2.0
47 stars 24 forks source link

includeresource from src/main/resources might be broken #69

Open tonit opened 7 years ago

tonit commented 7 years ago

At least i am wrestling with a

[Input file does not exist: testkey]

error from bnd with a given project where "testkey" is a folder in src/main/resources and i have the following instruction in my (included) bnd.bnd file:

-includeresource: testkey=testkey

So, i suspect that src/main/resources is not passed up to bnd but i need to investigate further. Could it be a regression after you had a change in that area for (my) ticket #68 ?

mfreeman-xtivia commented 7 years ago

FWIW I am seeing a related problem that seems to have been introduced in version 0.10.0 (i.e if I use 0.9.0 or lower I don't see the problem)

I too see error messages like [Input file does not exist: xxx] during the jar creation task.

Unwinding the code as best I can, and playing with different scenarios, it appears that if I have multiple directories included under src/main/resources it will trigger the above error. Reduce that to just a single subdirectory under src/main/resources and no problem. Add back in one more child directory, boom, see the problem.

And as I said if I rollback to version 0.9.0 no problems........