My Eclipse plugin project includes resources (files and directories) that are project templates. The plugin has a wizard to create template projects. The plugin basically looks at the resource bundle to find the right project template and copies the resource in the user's workspace.
It works fine when tested inside Eclipse, the user can use the wizard to select a project template and the template is created in his workspace.
But when I create a product (added a product file + export the product), and test it, it works, but all the empty directories in the template are not copied in the user's workspace. When I check the plugin (jar) file, actually all the resources are there except the empty files. So, somehow, when the product is built the empty directories get ignored.
The build.properties is (the 'templates/' directory is the directory that stores all the templates, some having empty directories):
source.. = src/
output.. = bin/
bin.includes = plugin.xml,\
META-INF/,\
.,\
icons/,\
resources/,\
templates/,\
OSGI-INF/,\
intro/
Is there a way to force the jar to get all the resources (i.e. including the empty directories) ?