Tabnine Logo
org.eclipse.equinox.p2.publisher
Code IndexAdd Tabnine to your IDE (free)

How to use org.eclipse.equinox.p2.publisher

Best Java code snippets using org.eclipse.equinox.p2.publisher (Showing top 20 results out of 315)

origin: org.eclipse.tycho/org.eclipse.tycho.p2.resolver.impl

private IStatus executePublisherAction(BundlesAction action) {
  IPublisherAction[] actions = new IPublisherAction[] { action };
  publisherResult = new PublisherResult();
  return new Publisher(publisherInfo, publisherResult).publish(actions, null);
}
origin: com.github.veithen.cosmos.bootstrap/org.eclipse.equinox.p2.publisher

public void merge(IPublisherResult result, int mode) {
  if (mode == MERGE_MATCHING) {
    addIUs(result.getIUs(null, ROOT), ROOT);
    addIUs(result.getIUs(null, NON_ROOT), NON_ROOT);
  } else if (mode == MERGE_ALL_ROOT) {
    addIUs(result.getIUs(null, ROOT), ROOT);
    addIUs(result.getIUs(null, NON_ROOT), ROOT);
  } else if (mode == MERGE_ALL_NON_ROOT) {
    addIUs(result.getIUs(null, ROOT), NON_ROOT);
    addIUs(result.getIUs(null, NON_ROOT), NON_ROOT);
  }
}
origin: org.eclipse.platform/org.eclipse.equinox.p2.publisher.eclipse

@Override
protected void initialize(PublisherInfo publisherInfo) throws ProvisionException {
  super.initialize(publisherInfo);
  if (publisherInfo.getConfigurations().length == 0)
    publisherInfo.setConfigurations(new String[] {""}); //$NON-NLS-1$
}
origin: org.eclipse.equinox.p2/directorywatcher

private void initializePublisher() {
  info = new PublisherInfo();
  info.setArtifactRepository(artifactRepository);
  info.setMetadataRepository(metadataRepository);
  info.addAdvice(advice);
  info.setArtifactOptions(IPublisherInfo.A_INDEX | IPublisherInfo.A_NO_MD5);
}
origin: org.eclipse.equinox.p2/updatesite

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);
}
origin: com.github.veithen.cosmos.bootstrap/org.eclipse.equinox.p2.publisher

  protected void savePublishedIUs() {
    IMetadataRepository metadataRepository = info.getMetadataRepository();
    if (metadataRepository != null) {
      Collection<IInstallableUnit> ius = results.getIUs(null, null);
      metadataRepository.addInstallableUnits(ius);
    }
  }
}
origin: com.github.veithen.cosmos.bootstrap/org.eclipse.equinox.p2.publisher

protected void initialize(PublisherInfo publisherInfo) throws ProvisionException {
  if (inplace) {
    File location = new File(source);
    if (metadataLocation == null)
      metadataLocation = location.toURI();
    if (artifactLocation == null)
      artifactLocation = location.toURI();
    publisherInfo.setArtifactOptions(publisherInfo.getArtifactOptions() | IPublisherInfo.A_INDEX | IPublisherInfo.A_PUBLISH);
  }
  initializeRepositories(publisherInfo);
}
origin: com.github.veithen.cosmos.bootstrap/org.eclipse.equinox.p2.publisher

/**
 * Returns the normalized string form of the given config spec.  This is useful for putting
 * in IU ids etc. Note that the result is not intended to be machine readable (i.e., parseConfigSpec
 * may not work on the result).
 * @param configSpec the config spec to format
 * @return the readable format of the given config spec
 */
protected String createIdString(String configSpec) {
  String[] config = parseConfigSpec(configSpec);
  return config[0] + '.' + config[1] + '.' + config[2];
}
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.equinox.p2.publisher

/**
 * Adds all applicable touchpoint advice to the given installable unit.
 * @param iu The installable unit to add touchpoint advice to
 * @param currentInstructions The set of touchpoint instructions assembled for this IU so far
 * @param info The publisher info
 */
protected static void processTouchpointAdvice(InstallableUnitDescription iu, Map<String, ? extends Object> currentInstructions, IPublisherInfo info) {
  processTouchpointAdvice(iu, currentInstructions, info, null);
}
origin: org.eclipse.osgi/org.eclipse.equinox.p2.publisher.eclipse

protected void initialize(PublisherInfo publisherInfo) throws ProvisionException {
  super.initialize(publisherInfo);
  if (publisherInfo.getConfigurations().length == 0)
    publisherInfo.setConfigurations(new String[] {""}); //$NON-NLS-1$
}
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.equinox.p2.publisher

  protected void savePublishedIUs() {
    IMetadataRepository metadataRepository = info.getMetadataRepository();
    if (metadataRepository != null) {
      Collection<IInstallableUnit> ius = results.getIUs(null, null);
      metadataRepository.addInstallableUnits(ius);
    }
  }
}
origin: org.eclipse.equinox.p2/publisher

public void merge(IPublisherResult result, int mode) {
  if (mode == MERGE_MATCHING) {
    addIUs(result.getIUs(null, ROOT), ROOT);
    addIUs(result.getIUs(null, NON_ROOT), NON_ROOT);
  } else if (mode == MERGE_ALL_ROOT) {
    addIUs(result.getIUs(null, ROOT), ROOT);
    addIUs(result.getIUs(null, NON_ROOT), ROOT);
  } else if (mode == MERGE_ALL_NON_ROOT) {
    addIUs(result.getIUs(null, ROOT), NON_ROOT);
    addIUs(result.getIUs(null, NON_ROOT), NON_ROOT);
  }
}
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.equinox.p2.publisher

protected void initialize(PublisherInfo publisherInfo) throws ProvisionException {
  if (inplace) {
    File location = new File(source);
    if (metadataLocation == null)
      metadataLocation = location.toURI();
    if (artifactLocation == null)
      artifactLocation = location.toURI();
    publisherInfo.setArtifactOptions(publisherInfo.getArtifactOptions() | IPublisherInfo.A_INDEX | IPublisherInfo.A_PUBLISH);
  }
  initializeRepositories(publisherInfo);
}
origin: org.eclipse.equinox.p2/publisher

/**
 * Returns the normalized string form of the given config spec.  This is useful for putting
 * in IU ids etc. Note that the result is not intended to be machine readable (i.e., parseConfigSpec
 * may not work on the result).
 * @param configSpec the config spec to format
 * @return the readable format of the given config spec
 */
protected String createIdString(String configSpec) {
  String[] config = parseConfigSpec(configSpec);
  return config[0] + '.' + config[1] + '.' + config[2];
}
origin: org.eclipse.equinox.p2/publisher

/**
 * Adds all applicable touchpoint advice to the given installable unit.
 * @param iu The installable unit to add touchpoint advice to
 * @param currentInstructions The set of touchpoint instructions assembled for this IU so far
 * @param info The publisher info
 */
protected static void processTouchpointAdvice(InstallableUnitDescription iu, Map<String, ? extends Object> currentInstructions, IPublisherInfo info) {
  processTouchpointAdvice(iu, currentInstructions, info, null);
}
origin: com.github.veithen.cosmos.bootstrap/org.eclipse.equinox.p2.publisher.eclipse

protected void initialize(PublisherInfo publisherInfo) throws ProvisionException {
  super.initialize(publisherInfo);
  if (publisherInfo.getConfigurations().length == 0)
    publisherInfo.setConfigurations(new String[] {""}); //$NON-NLS-1$
}
origin: org.eclipse.platform/org.eclipse.equinox.p2.publisher

  protected void savePublishedIUs() {
    IMetadataRepository metadataRepository = info.getMetadataRepository();
    if (metadataRepository != null) {
      Collection<IInstallableUnit> ius = results.getIUs(null, null);
      metadataRepository.addInstallableUnits(ius);
    }
  }
}
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.equinox.p2.publisher

public void merge(IPublisherResult result, int mode) {
  if (mode == MERGE_MATCHING) {
    addIUs(result.getIUs(null, ROOT), ROOT);
    addIUs(result.getIUs(null, NON_ROOT), NON_ROOT);
  } else if (mode == MERGE_ALL_ROOT) {
    addIUs(result.getIUs(null, ROOT), ROOT);
    addIUs(result.getIUs(null, NON_ROOT), ROOT);
  } else if (mode == MERGE_ALL_NON_ROOT) {
    addIUs(result.getIUs(null, ROOT), NON_ROOT);
    addIUs(result.getIUs(null, NON_ROOT), NON_ROOT);
  }
}
origin: org.eclipse.platform/org.eclipse.equinox.p2.publisher

/**
 * Returns the normalized string form of the given config spec.  This is useful for putting
 * in IU ids etc. Note that the result is not intended to be machine readable (i.e., parseConfigSpec
 * may not work on the result).
 * @param configSpec the config spec to format
 * @return the readable format of the given config spec
 */
protected String createIdString(String configSpec) {
  String[] config = parseConfigSpec(configSpec);
  return config[0] + '.' + config[1] + '.' + config[2];
}
origin: org.eclipse.platform/org.eclipse.equinox.p2.publisher

@Override
public void merge(IPublisherResult result, int mode) {
  if (mode == MERGE_MATCHING) {
    addIUs(result.getIUs(null, ROOT), ROOT);
    addIUs(result.getIUs(null, NON_ROOT), NON_ROOT);
  } else if (mode == MERGE_ALL_ROOT) {
    addIUs(result.getIUs(null, ROOT), ROOT);
    addIUs(result.getIUs(null, NON_ROOT), ROOT);
  } else if (mode == MERGE_ALL_NON_ROOT) {
    addIUs(result.getIUs(null, ROOT), NON_ROOT);
    addIUs(result.getIUs(null, NON_ROOT), NON_ROOT);
  }
}
org.eclipse.equinox.p2.publisher

Most used classes

  • PublisherInfo
  • BundlesAction
  • AdviceFileAdvice
    Publishing advice from a p2 advice file. An advice file (p2.inf) can be embedded in the source of a
  • IPublisherResult
    Publisher results represent the result of running a publishing operation. A result is a collection o
  • IPublisherAction
  • PublisherResult,
  • JREAction,
  • AbstractPublisherApplication,
  • Feature,
  • FeatureEntry,
  • AbstractPublisherAction,
  • IVersionAdvice,
  • RootFilesAction,
  • RootFilesAdvice,
  • RootIUAction,
  • VersionAdvice,
  • Publisher,
  • FeaturesAction,
  • AdviceFileParser
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now