protected IStatus generateRootIU(IPublisherResult result) { Collection<? extends IVersionedId> children = getChildren(result); InstallableUnitDescription descriptor = createTopLevelIUDescription(children, null, false); processUpdateDescriptorAdvice(descriptor, info); processCapabilityAdvice(descriptor, info); processTouchpointAdvice(descriptor, null, info); processInstallableUnitPropertiesAdvice(descriptor, info); processLicense(descriptor, info); IInstallableUnit rootIU = MetadataFactory.createInstallableUnit(descriptor); if (rootIU == null) return new Status(IStatus.ERROR, Activator.ID, NLS.bind(Messages.error_rootIU_generation, new Object[] {name, id, version})); result.addIU(rootIU, IPublisherResult.NON_ROOT); InstallableUnitDescription[] others = processAdditionalInstallableUnitsAdvice(rootIU, info); for (int iuIndex = 0; others != null && iuIndex < others.length; iuIndex++) { result.addIU(MetadataFactory.createInstallableUnit(others[iuIndex]), IPublisherResult.ROOT); } return Status.OK_STATUS; // TODO why do we create a category here? // result.addIU(generateDefaultCategory(rootIU, rootCategory), IPublisherResult.NON_ROOT); }
protected IStatus generateRootIU(IPublisherResult result) { Collection<? extends IVersionedId> children = getChildren(result); InstallableUnitDescription descriptor = createTopLevelIUDescription(children, null, false); processUpdateDescriptorAdvice(descriptor, info); processCapabilityAdvice(descriptor, info); processTouchpointAdvice(descriptor, null, info); processInstallableUnitPropertiesAdvice(descriptor, info); processLicense(descriptor, info); IInstallableUnit rootIU = MetadataFactory.createInstallableUnit(descriptor); if (rootIU == null) return new Status(IStatus.ERROR, Activator.ID, NLS.bind(Messages.error_rootIU_generation, new Object[] {name, id, version})); result.addIU(rootIU, IPublisherResult.NON_ROOT); InstallableUnitDescription[] others = processAdditionalInstallableUnitsAdvice(rootIU, info); for (int iuIndex = 0; others != null && iuIndex < others.length; iuIndex++) { result.addIU(MetadataFactory.createInstallableUnit(others[iuIndex]), IPublisherResult.ROOT); } return Status.OK_STATUS; // TODO why do we create a category here? // result.addIU(generateDefaultCategory(rootIU, rootCategory), IPublisherResult.NON_ROOT); }
protected IStatus generateRootIU(IPublisherResult result) { Collection<? extends IVersionedId> children = getChildren(result); InstallableUnitDescription descriptor = createTopLevelIUDescription(children, null, false); processUpdateDescriptorAdvice(descriptor, info); processCapabilityAdvice(descriptor, info); processTouchpointAdvice(descriptor, null, info); processInstallableUnitPropertiesAdvice(descriptor, info); processLicense(descriptor, info); IInstallableUnit rootIU = MetadataFactory.createInstallableUnit(descriptor); if (rootIU == null) return new Status(IStatus.ERROR, Activator.ID, NLS.bind(Messages.error_rootIU_generation, new Object[] {name, id, version})); result.addIU(rootIU, IPublisherResult.NON_ROOT); InstallableUnitDescription[] others = processAdditionalInstallableUnitsAdvice(rootIU, info); for (int iuIndex = 0; others != null && iuIndex < others.length; iuIndex++) { result.addIU(MetadataFactory.createInstallableUnit(others[iuIndex]), IPublisherResult.ROOT); } return Status.OK_STATUS; // TODO why do we create a category here? // result.addIU(generateDefaultCategory(rootIU, rootCategory), IPublisherResult.NON_ROOT); }
protected IStatus generateRootIU(IPublisherResult result) { Collection<? extends IVersionedId> children = getChildren(result); InstallableUnitDescription descriptor = createTopLevelIUDescription(children, null, false); processUpdateDescriptorAdvice(descriptor, info); processCapabilityAdvice(descriptor, info); processTouchpointAdvice(descriptor, null, info); processInstallableUnitPropertiesAdvice(descriptor, info); processLicense(descriptor, info); IInstallableUnit rootIU = MetadataFactory.createInstallableUnit(descriptor); if (rootIU == null) return new Status(IStatus.ERROR, Activator.ID, NLS.bind(Messages.error_rootIU_generation, new Object[] {name, id, version})); result.addIU(rootIU, IPublisherResult.NON_ROOT); InstallableUnitDescription[] others = processAdditionalInstallableUnitsAdvice(rootIU, info); for (int iuIndex = 0; others != null && iuIndex < others.length; iuIndex++) { result.addIU(MetadataFactory.createInstallableUnit(others[iuIndex]), IPublisherResult.ROOT); } return Status.OK_STATUS; // TODO why do we create a category here? // result.addIU(generateDefaultCategory(rootIU, rootCategory), IPublisherResult.NON_ROOT); }