public interface BundleReader
Modifier and Type | Method and Description |
---|---|
File |
getEntry(File bundleLocation,
String path)
Returns bundle entry with given path or
null if no such entry exists. |
OsgiManifest |
loadManifest(File bundleLocation)
Load and cache OSGi manifest from path META-INF/MANIFEST.MF under the given location.
|
OsgiManifest loadManifest(File bundleLocation) throws OsgiManifestParserException, InvalidOSGiManifestException
bundleLocation
- can be either a directory or a jar filenull
OsgiManifestParserException
- if no valid MANIFEST is found in bundleLocation or it cannot be converted from
plugin.xml/fragment.xml.InvalidOSGiManifestException
- if valid MANIFEST is found but it does not have valid mandatory OSGi headersFile getEntry(File bundleLocation, String path)
null
if no such entry exists. If bundle
is a jar, the entry will be extracted into a cached location.bundleLocation
- can be either a directory or a jar filepath
- path relative to the bundle root. Paths starting with "external:" are ignoredCopyright © 2008-2016 Eclipse Foundation. All Rights Reserved.