Package org.eclipse.tycho.core.osgitools
Class DefaultBundleReader
- java.lang.Object
-
- org.codehaus.plexus.logging.AbstractLogEnabled
-
- org.eclipse.tycho.core.osgitools.DefaultBundleReader
-
- All Implemented Interfaces:
org.codehaus.plexus.logging.LogEnabled
,BundleReader
@Component(role=BundleReader.class) public class DefaultBundleReader extends org.codehaus.plexus.logging.AbstractLogEnabled implements BundleReader
-
-
Field Summary
Fields Modifier and Type Field Description static String
CACHE_PATH
-
Constructor Summary
Constructors Constructor Description DefaultBundleReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description File
getEntry(File bundleLocation, String path)
Returns bundle entry with given path ornull
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)
-
-
-
Field Detail
-
CACHE_PATH
public static final String CACHE_PATH
- See Also:
- Constant Field Values
-
-
Method Detail
-
loadManifest
public OsgiManifest loadManifest(File bundleLocation)
Description copied from interface:BundleReader
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.- Specified by:
loadManifest
in interfaceBundleReader
- Parameters:
bundleLocation
- can be either a directory or a jar file- Returns:
- the OSGi MANIFEST, never
null
-
setLocationRepository
public void setLocationRepository(File basedir)
-
getEntry
public File getEntry(File bundleLocation, String path)
Description copied from interface:BundleReader
Returns bundle entry with given path ornull
if no such entry exists. If bundle is a jar, the entry will be extracted into a cached location.- Specified by:
getEntry
in interfaceBundleReader
- Parameters:
bundleLocation
- can be either a directory or a jar filepath
- path relative to the bundle root. Paths starting with "external:" are ignored
-
-