congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
IPublisherInfo.getConfigurations
Code IndexAdd Tabnine to your IDE (free)

How to use
getConfigurations
method
in
org.eclipse.equinox.p2.publisher.IPublisherInfo

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

origin: com.github.veithen.cosmos.bootstrap/org.eclipse.equinox.p2.publisher.eclipse

protected IPublisherAction[] createActions() {
  createAdvice();
  ArrayList<IPublisherAction> actions = new ArrayList<IPublisherAction>();
  // create an action that just publishes the raw bundles and features
  IPublisherAction action = new MergeResultsAction(new IPublisherAction[] {createFeaturesAction(), createBundlesAction()}, IPublisherResult.MERGE_ALL_ROOT);
  actions.add(action);
  actions.add(createApplicationExecutableAction(info.getConfigurations()));
  actions.add(createRootFilesAction());
  actions.addAll(createAccumulateConfigDataActions(info.getConfigurations()));
  actions.add(createJREAction());
  actions.add(createConfigCUsAction());
  actions.add(createDefaultCUsAction());
  actions.add(createRootIUAction());
  return actions.toArray(new IPublisherAction[actions.size()]);
}
origin: org.eclipse.platform/org.eclipse.equinox.p2.publisher.eclipse

protected IPublisherAction[] createActions() {
  createAdvice();
  ArrayList<IPublisherAction> actions = new ArrayList<>();
  // create an action that just publishes the raw bundles and features
  IPublisherAction action = new MergeResultsAction(new IPublisherAction[] {createFeaturesAction(), createBundlesAction()}, IPublisherResult.MERGE_ALL_ROOT);
  actions.add(action);
  actions.add(createApplicationExecutableAction(info.getConfigurations()));
  actions.add(createRootFilesAction());
  actions.addAll(createAccumulateConfigDataActions(info.getConfigurations()));
  actions.add(createJREAction());
  actions.add(createConfigCUsAction());
  actions.add(createDefaultCUsAction());
  actions.add(createRootIUAction());
  return actions.toArray(new IPublisherAction[actions.size()]);
}
origin: org.eclipse.osgi/org.eclipse.equinox.p2.publisher.eclipse

protected IPublisherAction[] createActions() {
  createAdvice();
  ArrayList<IPublisherAction> actions = new ArrayList<IPublisherAction>();
  // create an action that just publishes the raw bundles and features
  IPublisherAction action = new MergeResultsAction(new IPublisherAction[] {createFeaturesAction(), createBundlesAction()}, IPublisherResult.MERGE_ALL_ROOT);
  actions.add(action);
  actions.add(createApplicationExecutableAction(info.getConfigurations()));
  actions.add(createRootFilesAction());
  actions.addAll(createAccumulateConfigDataActions(info.getConfigurations()));
  actions.add(createJREAction());
  actions.add(createConfigCUsAction());
  actions.add(createDefaultCUsAction());
  actions.add(createRootIUAction());
  return actions.toArray(new IPublisherAction[actions.size()]);
}
origin: org.eclipse.osgi/org.eclipse.equinox.p2.publisher.eclipse

protected IPublisherAction[] createActions(IPublisherResult results) {
  // generate the advice we can up front.
  createAdvice();
  // create all the actions needed to publish a product
  ArrayList<IPublisherAction> actions = new ArrayList<IPublisherAction>();
  // products include the executable so add actions to publish them
  if (getExecutablesLocation() != null && this.product.includeLaunchers())
    actions.add(createApplicationExecutableAction(info.getConfigurations()));
  // add the actions that just configure things.
  actions.add(createConfigCUsAction());
  actions.add(createJREAction());
  actions.add(createDefaultCUsAction());
  actions.add(createRootIUAction());
  return actions.toArray(new IPublisherAction[actions.size()]);
}
origin: org.eclipse.platform/org.eclipse.equinox.p2.publisher.eclipse

protected IPublisherAction[] createActions(IPublisherResult results) {
  // generate the advice we can up front.
  createAdvice();
  // create all the actions needed to publish a product
  ArrayList<IPublisherAction> actions = new ArrayList<>();
  // products include the executable so add actions to publish them
  if (getExecutablesLocation() != null && this.product.includeLaunchers())
    actions.add(createApplicationExecutableAction(info.getConfigurations()));
  // add the actions that just configure things.
  actions.add(createConfigCUsAction());
  actions.add(createDefaultCUsAction());
  actions.add(createRootIUAction());
  actions.add(createJREAction());
  return actions.toArray(new IPublisherAction[actions.size()]);
}
origin: com.github.veithen.cosmos.bootstrap/org.eclipse.equinox.p2.publisher.eclipse

protected IPublisherAction[] createActions(IPublisherResult results) {
  // generate the advice we can up front.
  createAdvice();
  // create all the actions needed to publish a product
  ArrayList<IPublisherAction> actions = new ArrayList<IPublisherAction>();
  // products include the executable so add actions to publish them
  if (getExecutablesLocation() != null && this.product.includeLaunchers())
    actions.add(createApplicationExecutableAction(info.getConfigurations()));
  // add the actions that just configure things.
  actions.add(createConfigCUsAction());
  actions.add(createJREAction());
  actions.add(createDefaultCUsAction());
  actions.add(createRootIUAction());
  return actions.toArray(new IPublisherAction[actions.size()]);
}
origin: org.eclipse.platform/org.eclipse.equinox.p2.publisher.eclipse

Set<String> processedOs = new HashSet<>();
Set<String> osWithUndefinedVM = new HashSet<>();
for (String configSpec : info.getConfigurations()) {
  String os = parseConfigSpec(configSpec)[1];
  if (processedOs.contains(os)) {
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.equinox.p2.publisher

public IStatus perform(IPublisherInfo publisherInfo, IPublisherResult results, IProgressMonitor monitor) {
  setPublisherInfo(publisherInfo);
  IPublisherResult innerResult = new PublisherResult();
  // we have N platforms, generate a CU for each
  // TODO try and find common properties across platforms
  String[] configSpecs = publisherInfo.getConfigurations();
  for (int i = 0; i < configSpecs.length; i++) {
    if (monitor.isCanceled())
      return Status.CANCEL_STATUS;
    generateRootFileIUs(configSpecs[i], innerResult);
  }
  // merge the IUs  into the final result as non-roots and create a parent IU that captures them all
  results.merge(innerResult, IPublisherResult.MERGE_ALL_NON_ROOT);
  if (createParent)
    publishTopLevelRootFilesIU(innerResult.getIUs(null, IPublisherResult.ROOT), results);
  if (monitor.isCanceled())
    return Status.CANCEL_STATUS;
  return Status.OK_STATUS;
}
origin: org.eclipse.platform/org.eclipse.equinox.p2.publisher

@Override
public IStatus perform(IPublisherInfo publisherInfo, IPublisherResult results, IProgressMonitor monitor) {
  setPublisherInfo(publisherInfo);
  IPublisherResult innerResult = new PublisherResult();
  // we have N platforms, generate a CU for each
  // TODO try and find common properties across platforms
  String[] configSpecs = publisherInfo.getConfigurations();
  for (int i = 0; i < configSpecs.length; i++) {
    if (monitor.isCanceled())
      return Status.CANCEL_STATUS;
    generateRootFileIUs(configSpecs[i], innerResult);
  }
  // merge the IUs  into the final result as non-roots and create a parent IU that captures them all
  results.merge(innerResult, IPublisherResult.MERGE_ALL_NON_ROOT);
  if (createParent)
    publishTopLevelRootFilesIU(innerResult.getIUs(null, IPublisherResult.ROOT), results);
  if (monitor.isCanceled())
    return Status.CANCEL_STATUS;
  return Status.OK_STATUS;
}
origin: com.github.veithen.cosmos.bootstrap/org.eclipse.equinox.p2.publisher

public IStatus perform(IPublisherInfo publisherInfo, IPublisherResult results, IProgressMonitor monitor) {
  setPublisherInfo(publisherInfo);
  IPublisherResult innerResult = new PublisherResult();
  // we have N platforms, generate a CU for each
  // TODO try and find common properties across platforms
  String[] configSpecs = publisherInfo.getConfigurations();
  for (int i = 0; i < configSpecs.length; i++) {
    if (monitor.isCanceled())
      return Status.CANCEL_STATUS;
    generateRootFileIUs(configSpecs[i], innerResult);
  }
  // merge the IUs  into the final result as non-roots and create a parent IU that captures them all
  results.merge(innerResult, IPublisherResult.MERGE_ALL_NON_ROOT);
  if (createParent)
    publishTopLevelRootFilesIU(innerResult.getIUs(null, IPublisherResult.ROOT), results);
  if (monitor.isCanceled())
    return Status.CANCEL_STATUS;
  return Status.OK_STATUS;
}
origin: org.eclipse.equinox.p2/publisher

public IStatus perform(IPublisherInfo publisherInfo, IPublisherResult results, IProgressMonitor monitor) {
  setPublisherInfo(publisherInfo);
  IPublisherResult innerResult = new PublisherResult();
  // we have N platforms, generate a CU for each
  // TODO try and find common properties across platforms
  String[] configSpecs = publisherInfo.getConfigurations();
  for (int i = 0; i < configSpecs.length; i++) {
    if (monitor.isCanceled())
      return Status.CANCEL_STATUS;
    generateRootFileIUs(configSpecs[i], innerResult);
  }
  // merge the IUs  into the final result as non-roots and create a parent IU that captures them all
  results.merge(innerResult, IPublisherResult.MERGE_ALL_NON_ROOT);
  if (createParent)
    publishTopLevelRootFilesIU(innerResult.getIUs(null, IPublisherResult.ROOT), results);
  if (monitor.isCanceled())
    return Status.CANCEL_STATUS;
  return Status.OK_STATUS;
}
origin: com.github.veithen.cosmos.bootstrap/org.eclipse.equinox.p2.publisher.eclipse

protected void createRootFilesAdvice() {
  File[] baseExclusions = computeRootFileExclusions();
  if (baseExclusions != null)
    info.addAdvice(new RootFilesAdvice(null, null, baseExclusions, null));
  String[] configs = info.getConfigurations();
  for (int i = 0; i < configs.length; i++)
    info.addAdvice(computeRootFileAdvice(configs[i]));
}
origin: org.eclipse.platform/org.eclipse.equinox.p2.publisher.eclipse

protected void createRootFilesAdvice() {
  File[] baseExclusions = computeRootFileExclusions();
  if (baseExclusions != null)
    info.addAdvice(new RootFilesAdvice(null, null, baseExclusions, null));
  String[] configs = info.getConfigurations();
  for (int i = 0; i < configs.length; i++)
    info.addAdvice(computeRootFileAdvice(configs[i]));
}
origin: org.eclipse.platform/org.eclipse.equinox.p2.publisher.eclipse

private void createProductAdvice() {
  id = product.getId();
  version = Version.parseVersion(product.getVersion());
  name = product.getProductName();
  if (name == null || name.length() == 0) // If the name is not defined, use the ID
    name = product.getId();
  String[] configSpecs = info.getConfigurations();
  for (int i = 0; i < configSpecs.length; i++)
    info.addAdvice(new ProductFileAdvice(product, configSpecs[i]));
}
origin: org.eclipse.osgi/org.eclipse.equinox.p2.publisher.eclipse

private void createProductAdvice() {
  id = product.getId();
  version = Version.parseVersion(product.getVersion());
  name = product.getProductName();
  if (name == null || name.length() == 0) // If the name is not defined, use the ID
    name = product.getId();
  String[] configSpecs = info.getConfigurations();
  for (int i = 0; i < configSpecs.length; i++)
    info.addAdvice(new ProductFileAdvice(product, configSpecs[i]));
}
origin: com.github.veithen.cosmos.bootstrap/org.eclipse.equinox.p2.publisher.eclipse

private void createProductAdvice() {
  id = product.getId();
  version = Version.parseVersion(product.getVersion());
  name = product.getProductName();
  if (name == null || name.length() == 0) // If the name is not defined, use the ID
    name = product.getId();
  String[] configSpecs = info.getConfigurations();
  for (int i = 0; i < configSpecs.length; i++)
    info.addAdvice(new ProductFileAdvice(product, configSpecs[i]));
}
origin: org.eclipse.osgi/org.eclipse.equinox.p2.publisher.eclipse

protected void createRootFilesAdvice() {
  File[] baseExclusions = computeRootFileExclusions();
  if (baseExclusions != null)
    info.addAdvice(new RootFilesAdvice(null, null, baseExclusions, null));
  String[] configs = info.getConfigurations();
  for (int i = 0; i < configs.length; i++)
    info.addAdvice(computeRootFileAdvice(configs[i]));
}
origin: org.eclipse.platform/org.eclipse.equinox.p2.publisher.eclipse

@Override
public IStatus perform(IPublisherInfo publisherInfo, IPublisherResult results, IProgressMonitor monitor) {
  IPublisherResult innerResult = new PublisherResult();
  this.outerResults = results;
  this.info = publisherInfo;
  // we have N platforms, generate a CU for each
  // TODO try and find common properties across platforms
  String[] configSpecs = publisherInfo.getConfigurations();
  for (int i = 0; i < configSpecs.length; i++) {
    if (monitor.isCanceled())
      return Status.CANCEL_STATUS;
    String configSpec = configSpecs[i];
    Collection<IConfigAdvice> configAdvice = publisherInfo.getAdvice(configSpec, false, id, version, IConfigAdvice.class);
    BundleInfo[] bundles = fillInBundles(configAdvice, results);
    publishBundleCUs(publisherInfo, bundles, configSpec, innerResult);
    publishConfigIUs(configAdvice, innerResult, configSpec);
    Collection<IExecutableAdvice> launchingAdvice = publisherInfo.getAdvice(configSpec, false, id, version, IExecutableAdvice.class);
    publishIniIUs(launchingAdvice, innerResult, configSpec);
  }
  // merge the IUs  into the final result as non-roots and create a parent IU that captures them all
  results.merge(innerResult, IPublisherResult.MERGE_ALL_NON_ROOT);
  publishTopLevelConfigurationIU(innerResult.getIUs(null, IPublisherResult.ROOT), results);
  return Status.OK_STATUS;
}
origin: org.eclipse.osgi/org.eclipse.equinox.p2.publisher.eclipse

public IStatus perform(IPublisherInfo publisherInfo, IPublisherResult results, IProgressMonitor monitor) {
  IPublisherResult innerResult = new PublisherResult();
  this.outerResults = results;
  this.info = publisherInfo;
  // we have N platforms, generate a CU for each
  // TODO try and find common properties across platforms
  String[] configSpecs = publisherInfo.getConfigurations();
  for (int i = 0; i < configSpecs.length; i++) {
    if (monitor.isCanceled())
      return Status.CANCEL_STATUS;
    String configSpec = configSpecs[i];
    Collection<IConfigAdvice> configAdvice = publisherInfo.getAdvice(configSpec, false, id, version, IConfigAdvice.class);
    BundleInfo[] bundles = fillInBundles(configAdvice, results);
    publishBundleCUs(publisherInfo, bundles, configSpec, innerResult);
    publishConfigIUs(configAdvice, innerResult, configSpec);
    Collection<IExecutableAdvice> launchingAdvice = publisherInfo.getAdvice(configSpec, false, id, version, IExecutableAdvice.class);
    publishIniIUs(launchingAdvice, innerResult, configSpec);
  }
  // merge the IUs  into the final result as non-roots and create a parent IU that captures them all
  results.merge(innerResult, IPublisherResult.MERGE_ALL_NON_ROOT);
  publishTopLevelConfigurationIU(innerResult.getIUs(null, IPublisherResult.ROOT), results);
  return Status.OK_STATUS;
}
origin: com.github.veithen.cosmos.bootstrap/org.eclipse.equinox.p2.publisher.eclipse

@Override
public IStatus perform(IPublisherInfo publisherInfo, IPublisherResult results, IProgressMonitor monitor) {
  IPublisherResult innerResult = new PublisherResult();
  this.outerResults = results;
  this.info = publisherInfo;
  // we have N platforms, generate a CU for each
  // TODO try and find common properties across platforms
  String[] configSpecs = publisherInfo.getConfigurations();
  for (int i = 0; i < configSpecs.length; i++) {
    if (monitor.isCanceled())
      return Status.CANCEL_STATUS;
    String configSpec = configSpecs[i];
    Collection<IConfigAdvice> configAdvice = publisherInfo.getAdvice(configSpec, false, id, version, IConfigAdvice.class);
    BundleInfo[] bundles = fillInBundles(configAdvice, results);
    publishBundleCUs(publisherInfo, bundles, configSpec, innerResult);
    publishConfigIUs(configAdvice, innerResult, configSpec);
    Collection<IExecutableAdvice> launchingAdvice = publisherInfo.getAdvice(configSpec, false, id, version, IExecutableAdvice.class);
    publishIniIUs(launchingAdvice, innerResult, configSpec);
  }
  // merge the IUs  into the final result as non-roots and create a parent IU that captures them all
  results.merge(innerResult, IPublisherResult.MERGE_ALL_NON_ROOT);
  publishTopLevelConfigurationIU(innerResult.getIUs(null, IPublisherResult.ROOT), results);
  return Status.OK_STATUS;
}
org.eclipse.equinox.p2.publisherIPublisherInfogetConfigurations

Javadoc

Returns the configurations being published. Each configuration is a string of the form ws.os.arch describing the window system, operating system, and architecture of each configuration.

Popular methods of IPublisherInfo

  • getArtifactRepository
    Returns the artifact repository into which any publishable artifacts are published or null if none.
  • getMetadataRepository
    Returns the metadata repository into which any publishable metadata is published or null if none.
  • getAdvice
  • getArtifactOptions
    Returns whether or not artifacts themselves should be published.
  • getContextMetadataRepository
    Returns the metadata repository given to the publisher as context for the publisher actions. May be
  • addAdvice
    Add the given advice to the set of publishing advices.

Popular in Java

  • Reading from database using SQL prepared statement
  • onRequestPermissionsResult (Fragment)
  • getApplicationContext (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • JOptionPane (javax.swing)
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Sublime Text for Python
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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