/**
* make a bundle with the given symbolic name and version in the given file.
*/
private ArtifactData generateBundle(File file, Map<String, String> directives, String symbolicName, String version,
Map<String, String> additionalHeaders) throws Exception {
ArtifactData bundle = new ArtifactDataImpl(file.toURI().toURL(), directives, symbolicName, version, false);
if (additionalHeaders == null) {
BundleStreamGenerator.generateBundle(bundle);
}
else {
BundleStreamGenerator.generateBundle(bundle, additionalHeaders);