@Component(role=BundleReader.class) public class DefaultBundleReader extends org.codehaus.plexus.logging.AbstractLogEnabled implements BundleReader
Modifier and Type | Field and Description |
---|---|
static String |
CACHE_PATH |
Constructor and Description |
---|
DefaultBundleReader() |
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.
|
void |
setLocationRepository(File basedir) |
public static final String CACHE_PATH
public OsgiManifest loadManifest(File bundleLocation)
BundleReader
loadManifest
in interface BundleReader
bundleLocation
- can be either a directory or a jar filenull
public void setLocationRepository(File basedir)
public File getEntry(File bundleLocation, String path)
BundleReader
null
if no such entry exists. If bundle
is a jar, the entry will be extracted into a cached location.getEntry
in interface BundleReader
bundleLocation
- can be either a directory or a jar filepath
- path relative to the bundle root. Paths starting with "external:" are ignoredCopyright © 2008-2015 Eclipse Foundation. All Rights Reserved.