bndtools/bnd — pull request #215 by djencks (2012-07-20 17:33:11+00:00)
Title: Allow putting an empty dir in the bundle with a literal and path ending in /

We need a way to put empty directories into a bnd-generated jar. This is easy to implement using Include-Resource literals with a path ending in / and an empty or blank literal, e.g.

Include-Resource: hello/world/;literal=

We think this might be of interest to others.

Currently both literal= and literal='' generate an error:

No value after '=' sign for attribute literal

I think there's a problem in QuotedTokenizer since it returns null even for ''. I added a test to demonstrate this behavior. Since I don't understand the syntax QT is supposed to follow I'm not quite sure how to fix this. While looking into this I found and fixed, with a test, a bug in how escaped quotes in quoted strings are handled.