public class BundlesAction
extends AbstractPublisherAction
IAdditionalInstallableUnitAdvice IBundleShapeAdviceICapabilityAdviceIPropertyAdviceITouchpointAdvice| Modifier and Type | Field and Description |
|---|---|
static IProvidedCapability |
BUNDLE_CAPABILITY |
static int |
BUNDLE_LOCALIZATION_INDEX |
static java.lang.String |
BUNDLE_SHAPE |
static java.lang.String |
CAPABILITY_NS_OSGI_BUNDLE |
static java.lang.String |
CAPABILITY_NS_OSGI_FRAGMENT |
static java.lang.String |
DIR |
protected MultiStatus |
finalStatus |
static java.lang.String |
INSTALLATION_DIRECTIVE
Manifest header directive for specifying how optional runtime
requirements shall be handled during installation.
|
static java.lang.String |
INSTALLATION_GREEDY
Value for
INSTALLATION_DIRECTIVE indicating that an optional
requirement shall be installed unless this is prevented by other
mandatory requirements. |
static java.lang.String |
JAR |
static java.lang.String |
OSGI_BUNDLE_CLASSIFIER |
static IProvidedCapability |
SOURCE_BUNDLE_CAPABILITY |
static java.lang.String |
TYPE_ECLIPSE_BUNDLE
A capability name in the
PublisherHelper#NAMESPACE_ECLIPSE_TYPE namespace
representing and OSGi bundle resource |
static java.lang.String |
TYPE_ECLIPSE_SOURCE
A capability name in the
PublisherHelper#NAMESPACE_ECLIPSE_TYPE namespace
representing a source bundle |
| Constructor and Description |
|---|
BundlesAction(BundleDescription[] bundles) |
BundlesAction(java.io.File[] locations) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addImportPackageRequirement(java.util.ArrayList<IRequirement> reqsDeps,
ImportPackageSpecification importSpec,
ManifestElement[] rawImportPackageHeader) |
protected void |
addRequireBundleRequirement(java.util.ArrayList<IRequirement> reqsDeps,
BundleSpecification requiredBundle,
ManifestElement[] rawRequireBundleHeader) |
static java.util.Dictionary<java.lang.String,java.lang.String> |
basicLoadManifest(java.io.File bundleLocation) |
static java.util.Dictionary<java.lang.String,java.lang.String> |
basicLoadManifestIgnoringExceptions(java.io.File bundleLocation)
Deprecated.
use
basicLoadManifest(File) instead. |
protected void |
createAdviceFileAdvice(BundleDescription bundleDescription,
IPublisherInfo publisherInfo)
Adds advice for any p2.inf file found in this bundle.
|
static IArtifactKey |
createBundleArtifactKey(java.lang.String bsn,
java.lang.String version) |
static IInstallableUnit |
createBundleConfigurationUnit(java.lang.String hostId,
Version cuVersion,
boolean isBundleFragment,
GeneratorBundleInfo configInfo,
java.lang.String configurationFlavor,
<any> filter) |
static BundleDescription |
createBundleDescription(java.util.Dictionary<java.lang.String,java.lang.String> enhancedManifest,
java.io.File bundleLocation) |
static BundleDescription |
createBundleDescription(java.io.File bundleLocation) |
static BundleDescription |
createBundleDescriptionIgnoringExceptions(java.io.File bundleLocation)
Deprecated.
use
createBundleDescription(File) instead. |
static IInstallableUnit |
createBundleIU(BundleDescription bd,
IArtifactKey key,
IPublisherInfo info) |
static IInstallableUnit |
createDefaultBundleConfigurationUnit(GeneratorBundleInfo configInfo,
GeneratorBundleInfo unconfigInfo,
java.lang.String configurationFlavor) |
protected IInstallableUnit |
doCreateBundleIU(BundleDescription bd,
IArtifactKey key,
IPublisherInfo info) |
protected void |
generateBundleIUs(BundleDescription[] bundleDescriptions,
IPublisherInfo info,
IPublisherResult result,
IProgressMonitor monitor) |
protected void |
generateBundleIUs(BundleDescription[] bundleDescriptions,
IPublisherResult result,
IProgressMonitor monitor) |
protected BundleDescription[] |
getBundleDescriptions(java.io.File[] bundleLocations,
IProgressMonitor monitor) |
static java.lang.String[] |
getExternalizedStrings(IInstallableUnit iu) |
static java.util.Map<java.util.Locale,java.util.Map<java.lang.String,java.lang.String>> |
getHostLocalizations(java.io.File bundleLocation,
java.lang.String[] hostBundleManifestValues) |
static java.lang.String[] |
getManifestCachedValues(java.util.Map<java.lang.String,java.lang.String> manifest) |
protected static boolean |
isOptional(ImportPackageSpecification importedPackage) |
static java.util.Dictionary<java.lang.String,java.lang.String> |
loadManifest(java.io.File bundleLocation) |
static java.util.Dictionary<java.lang.String,java.lang.String> |
loadManifestIgnoringExceptions(java.io.File bundleLocation)
Deprecated.
use
loadManifest(File) instead. |
IStatus |
perform(IPublisherInfo publisherInfo,
IPublisherResult results,
IProgressMonitor monitor) |
protected void |
publishArtifact(IArtifactDescriptor descriptor,
java.io.File base,
java.io.File[] inclusions,
IPublisherInfo publisherInfo) |
protected void |
publishArtifact(IArtifactDescriptor descriptor,
java.io.File jarFile,
IPublisherInfo publisherInfo) |
public static final java.lang.String TYPE_ECLIPSE_BUNDLE
PublisherHelper#NAMESPACE_ECLIPSE_TYPE namespace
representing and OSGi bundle resourceIProvidedCapability#getName(),
Constant Field Valuespublic static final java.lang.String TYPE_ECLIPSE_SOURCE
PublisherHelper#NAMESPACE_ECLIPSE_TYPE namespace
representing a source bundleIProvidedCapability#getName(),
Constant Field Valuespublic static final java.lang.String OSGI_BUNDLE_CLASSIFIER
public static final java.lang.String CAPABILITY_NS_OSGI_BUNDLE
public static final java.lang.String CAPABILITY_NS_OSGI_FRAGMENT
public static final IProvidedCapability BUNDLE_CAPABILITY
public static final IProvidedCapability SOURCE_BUNDLE_CAPABILITY
public static final int BUNDLE_LOCALIZATION_INDEX
public static final java.lang.String DIR
public static final java.lang.String JAR
public static final java.lang.String BUNDLE_SHAPE
public static final java.lang.String INSTALLATION_DIRECTIVE
INSTALLATION_GREEDY,
Constant Field Valuespublic static final java.lang.String INSTALLATION_GREEDY
INSTALLATION_DIRECTIVE indicating that an optional
requirement shall be installed unless this is prevented by other
mandatory requirements. Optional requirements without this directive
value are ignored during installation.protected MultiStatus finalStatus
public BundlesAction(java.io.File[] locations)
public BundlesAction(BundleDescription[] bundles)
public static IArtifactKey createBundleArtifactKey(java.lang.String bsn,
java.lang.String version)
public static IInstallableUnit createBundleConfigurationUnit(java.lang.String hostId,
Version cuVersion,
boolean isBundleFragment,
GeneratorBundleInfo configInfo,
java.lang.String configurationFlavor,
<any> filter)
public static IInstallableUnit createBundleIU(BundleDescription bd,
IArtifactKey key,
IPublisherInfo info)
protected IInstallableUnit doCreateBundleIU(BundleDescription bd,
IArtifactKey key,
IPublisherInfo info)
protected void addImportPackageRequirement(java.util.ArrayList<IRequirement> reqsDeps,
ImportPackageSpecification importSpec,
ManifestElement[] rawImportPackageHeader)
protected void addRequireBundleRequirement(java.util.ArrayList<IRequirement> reqsDeps,
BundleSpecification requiredBundle,
ManifestElement[] rawRequireBundleHeader)
public static IInstallableUnit createDefaultBundleConfigurationUnit(GeneratorBundleInfo configInfo, GeneratorBundleInfo unconfigInfo, java.lang.String configurationFlavor)
protected static boolean isOptional(ImportPackageSpecification importedPackage)
public static java.lang.String[] getExternalizedStrings(IInstallableUnit iu)
public static java.lang.String[] getManifestCachedValues(java.util.Map<java.lang.String,java.lang.String> manifest)
public static java.util.Map<java.util.Locale,java.util.Map<java.lang.String,java.lang.String>> getHostLocalizations(java.io.File bundleLocation,
java.lang.String[] hostBundleManifestValues)
public static BundleDescription createBundleDescription(java.util.Dictionary<java.lang.String,java.lang.String> enhancedManifest,
java.io.File bundleLocation)
@Deprecated public static BundleDescription createBundleDescriptionIgnoringExceptions(java.io.File bundleLocation)
createBundleDescription(File) instead.public static BundleDescription createBundleDescription(java.io.File bundleLocation)
throws java.io.IOException,
BundleException
java.io.IOExceptionBundleException@Deprecated public static java.util.Dictionary<java.lang.String,java.lang.String> loadManifestIgnoringExceptions(java.io.File bundleLocation)
loadManifest(File) instead.public static java.util.Dictionary<java.lang.String,java.lang.String> loadManifest(java.io.File bundleLocation)
throws java.io.IOException,
BundleException
java.io.IOExceptionBundleException@Deprecated public static java.util.Dictionary<java.lang.String,java.lang.String> basicLoadManifestIgnoringExceptions(java.io.File bundleLocation)
basicLoadManifest(File) instead.public static java.util.Dictionary<java.lang.String,java.lang.String> basicLoadManifest(java.io.File bundleLocation)
throws java.io.IOException,
BundleException
java.io.IOExceptionBundleExceptionpublic IStatus perform(IPublisherInfo publisherInfo,
IPublisherResult results,
IProgressMonitor monitor)
protected void publishArtifact(IArtifactDescriptor descriptor,
java.io.File base,
java.io.File[] inclusions,
IPublisherInfo publisherInfo)
protected void publishArtifact(IArtifactDescriptor descriptor,
java.io.File jarFile,
IPublisherInfo publisherInfo)
protected void generateBundleIUs(BundleDescription[] bundleDescriptions,
IPublisherResult result,
IProgressMonitor monitor)
protected void generateBundleIUs(BundleDescription[] bundleDescriptions,
IPublisherInfo info,
IPublisherResult result,
IProgressMonitor monitor)
protected void createAdviceFileAdvice(BundleDescription bundleDescription,
IPublisherInfo publisherInfo)
protected BundleDescription[] getBundleDescriptions(java.io.File[] bundleLocations,
IProgressMonitor monitor)