protected PublisherInfo createPublisherInfo() { return new PublisherInfo(); }
protected PublisherInfo createPublisherInfo() { return new PublisherInfo(); }
protected PublisherInfo createPublisherInfo() { return new PublisherInfo(); }
protected PublisherInfo createPublisherInfo() { return new PublisherInfo(); }
@Override public DependencyMetadata generateMetadata(IArtifactFacade artifact, List<TargetEnvironment> environments, OptionalResolutionAction optionalAction, PublisherOptions options) { return super.generateMetadata(artifact, environments, new PublisherInfo(), optionalAction, options); }
@Override public DependencyMetadata generateMetadata(IArtifactFacade artifact, List<TargetEnvironment> environments, OptionalResolutionAction optionalAction, PublisherOptions options) { return super.generateMetadata(artifact, environments, new PublisherInfo(), optionalAction, options); } }
public static IInstallableUnit[] createEclipseIU(BundleDescription bd, boolean isFolderPlugin, IArtifactKey key, Map<String, String> extraProperties) { ArrayList<IInstallableUnit> iusCreated = new ArrayList<IInstallableUnit>(1); IPublisherInfo info = new PublisherInfo(); String shape = isFolderPlugin ? IBundleShapeAdvice.DIR : IBundleShapeAdvice.JAR; info.addAdvice(new BundleShapeAdvice(bd.getSymbolicName(), PublisherHelper.fromOSGiVersion(bd.getVersion()), shape)); IInstallableUnit iu = BundlesAction.createBundleIU(bd, key, info); addExtraProperties(iu, extraProperties); iusCreated.add(iu); return (iusCreated.toArray(new IInstallableUnit[iusCreated.size()])); }
public static IInstallableUnit[] createEclipseIU(BundleDescription bd, boolean isFolderPlugin, IArtifactKey key, Map<String, String> extraProperties) { ArrayList<IInstallableUnit> iusCreated = new ArrayList<>(1); IPublisherInfo info = new PublisherInfo(); String shape = isFolderPlugin ? IBundleShapeAdvice.DIR : IBundleShapeAdvice.JAR; info.addAdvice(new BundleShapeAdvice(bd.getSymbolicName(), PublisherHelper.fromOSGiVersion(bd.getVersion()), shape)); IInstallableUnit iu = BundlesAction.createBundleIU(bd, key, info); addExtraProperties(iu, extraProperties); iusCreated.add(iu); return (iusCreated.toArray(new IInstallableUnit[iusCreated.size()])); }
public static IInstallableUnit[] createEclipseIU(BundleDescription bd, boolean isFolderPlugin, IArtifactKey key, Map<String, String> extraProperties) { ArrayList<IInstallableUnit> iusCreated = new ArrayList<IInstallableUnit>(1); IPublisherInfo info = new PublisherInfo(); String shape = isFolderPlugin ? IBundleShapeAdvice.DIR : IBundleShapeAdvice.JAR; info.addAdvice(new BundleShapeAdvice(bd.getSymbolicName(), PublisherHelper.fromOSGiVersion(bd.getVersion()), shape)); IInstallableUnit iu = BundlesAction.createBundleIU(bd, key, info); addExtraProperties(iu, extraProperties); iusCreated.add(iu); return (iusCreated.toArray(new IInstallableUnit[iusCreated.size()])); }
private IStatus generateMetadata(UpdateSite updateSite, IMetadataRepository repository, IProgressMonitor monitor) { PublisherInfo info = new PublisherInfo(); info.setMetadataRepository(repository); IPublisherAction[] actions = new IPublisherAction[] {new RemoteUpdateSiteAction(updateSite, null)}; Publisher publisher = new Publisher(info); return publisher.publish(actions, monitor); }
static void addIUsFromEnvironment(String executionEnvironment, Map<VersionedId, IInstallableUnit> units) { // generate real IUs that represent requested execution environment PublisherResult results = new PublisherResult(); new JREAction(executionEnvironment).perform(new PublisherInfo(), results, null); results.query(QueryUtil.ALL_UNITS, null); Iterator<IInstallableUnit> iterator = results.query(QueryUtil.ALL_UNITS, null).iterator(); while (iterator.hasNext()) { put(units, iterator.next()); } }
public DependencyMetadata generateMetadata(IArtifactFacade artifact, List<TargetEnvironment> environments, PublisherOptions options) { PublisherInfo publisherInfo = new PublisherInfo(); publisherInfo.setArtifactOptions(IPublisherInfo.A_INDEX | IPublisherInfo.A_PUBLISH); publisherInfo.setArtifactRepository(new TransientArtifactRepository()); return super.generateMetadata(artifact, environments, publisherInfo, null, options); }
private void initializePublisher() { info = new PublisherInfo(); info.setArtifactRepository(artifactRepository); info.setMetadataRepository(metadataRepository); info.addAdvice(advice); info.setArtifactOptions(IPublisherInfo.A_INDEX | IPublisherInfo.A_NO_MD5); }
/** * Returns an IU corresponding to the given artifact key and bundle, or <code>null</code> * if an IU could not be created. */ public static IInstallableUnit createBundleIU(IArtifactKey artifactKey, File bundleFile) { BundleDescription bundleDescription = BundlesAction.createBundleDescriptionIgnoringExceptions(bundleFile); if (bundleDescription == null) return null; PublisherInfo info = new PublisherInfo(); Version version = Version.create(bundleDescription.getVersion().toString()); AdviceFileAdvice advice = new AdviceFileAdvice(bundleDescription.getSymbolicName(), version, new Path(bundleFile.getAbsolutePath()), AdviceFileAdvice.BUNDLE_ADVICE_FILE); if (advice.containsAdvice()) info.addAdvice(advice); String shape = bundleFile.isDirectory() ? IBundleShapeAdvice.DIR : IBundleShapeAdvice.JAR; info.addAdvice(new BundleShapeAdvice(bundleDescription.getSymbolicName(), version, shape)); return BundlesAction.createBundleIU(bundleDescription, artifactKey, info); }
/** * Returns an IU corresponding to the given artifact key and bundle, or <code>null</code> * if an IU could not be created. */ public static IInstallableUnit createBundleIU(IArtifactKey artifactKey, File bundleFile) { BundleDescription bundleDescription = BundlesAction.createBundleDescriptionIgnoringExceptions(bundleFile); if (bundleDescription == null) return null; PublisherInfo info = new PublisherInfo(); Version version = Version.create(bundleDescription.getVersion().toString()); AdviceFileAdvice advice = new AdviceFileAdvice(bundleDescription.getSymbolicName(), version, new Path(bundleFile.getAbsolutePath()), AdviceFileAdvice.BUNDLE_ADVICE_FILE); if (advice.containsAdvice()) info.addAdvice(advice); String shape = bundleFile.isDirectory() ? IBundleShapeAdvice.DIR : IBundleShapeAdvice.JAR; info.addAdvice(new BundleShapeAdvice(bundleDescription.getSymbolicName(), version, shape)); return BundlesAction.createBundleIU(bundleDescription, artifactKey, info); }
IInstallableUnit featureIU = createFeatureJarIU(feature, new PublisherInfo()); List<IInstallableUnit> childIUs = new ArrayList<IInstallableUnit>(); childIUs.add(featureIU); IInstallableUnit groupIU = createGroupIU(feature, childIUs, new PublisherInfo()); result.addIU(featureIU, IPublisherResult.ROOT); result.addIU(groupIU, IPublisherResult.ROOT);
IStatus execute() { publisherInfo = new PublisherInfo(); enableArtifactDescriptorCollection(); enableUnitAnnotationWithGAV(); BundlesAction bundlesAction = new BundlesAction(new File[] { mavenArtifact.getLocation() }); IStatus status = executePublisherAction(bundlesAction); return status; }
PublisherInfo publisherInfo = new PublisherInfo();