Package org.eclipse.tycho.core.osgitools
Interface BundleReader
-
- All Known Implementing Classes:
DefaultBundleReader
public interface BundleReaderCache for OSGi manifest files and bundle classpath entries.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.io.FilegetEntry(java.io.File bundleLocation, java.lang.String path)Returns bundle entry with given path ornullif no such entry exists.OsgiManifestloadManifest(java.io.File bundleLocation)Load and cache OSGi manifest from path META-INF/MANIFEST.MF under the given location.
-
-
-
Method Detail
-
loadManifest
OsgiManifest loadManifest(java.io.File bundleLocation) throws OsgiManifestParserException, InvalidOSGiManifestException
Load and cache OSGi manifest from path META-INF/MANIFEST.MF under the given location. If no META-INF/MANIFEST.MF is found but plugin.xml or fragment.xml is found, an attempt is made to convert it into an OSGi MANIFEST.- Parameters:
bundleLocation- can be either a directory or a jar file- Returns:
- the OSGi MANIFEST, never
null - Throws:
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 headers
-
getEntry
java.io.File getEntry(java.io.File bundleLocation, java.lang.String path)Returns bundle entry with given path ornullif no such entry exists. If bundle is a jar, the entry will be extracted into a cached location.- Parameters:
bundleLocation- can be either a directory or a jar filepath- path relative to the bundle root. Paths starting with "external:" are ignored
-
-