use of org.eclipse.osgi.storage.bundlefile.ZipBundleFile in project rt.equinox.framework by eclipse.
the class Storage method createBundleFile.
public BundleFile createBundleFile(File content, Generation generation, boolean isDirectory, boolean isBase) {
BundleFile result;
try {
if (isDirectory) {
boolean strictPath = Boolean.parseBoolean(equinoxContainer.getConfiguration().getConfiguration(EquinoxConfiguration.PROPERTY_STRICT_BUNDLE_ENTRY_PATH, Boolean.FALSE.toString()));
result = new DirBundleFile(content, strictPath);
} else {
result = new ZipBundleFile(content, generation, mruList, getConfiguration().getDebug());
}
} catch (IOException e) {
// $NON-NLS-1$
throw new RuntimeException("Could not create bundle file.", e);
}
return wrapBundleFile(result, generation, isBase);
}
Aggregations