Skip to content

Using CategoryPublisher for update-site creation #124

@m273d15

Description

@m273d15

Hi, thanks for your great plugin.

We use goomph to resolve the osgi dependencies and to build
the plugin's update-site. However, I had to write a new wrapper CategoryPublisher
(similar to your FeaturesAndBundlesPublisher; see below).

Therefore, my question: Do you plan to support the CategoryPublisher feature in the future (or is it already supported and I missed it)?
(I assume also other users would like to create an update-site)


import com.diffplug.gradle.FileMisc;
import com.diffplug.gradle.eclipserunner.EclipseApp;
import com.diffplug.gradle.pde.EclipseRelease;
import com.diffplug.gradle.pde.PdeInstallation;
import java.io.File;

public class CategoryPublisher extends EclipseApp {

  private final String eclipseVersion;

  public CategoryPublisher(String eclipseVersion) {
    super("org.eclipse.equinox.p2.publisher.CategoryPublisher");
    this.eclipseVersion = eclipseVersion;
  }

  public void metadataRepository(File file) {
    addArg("metadataRepository", FileMisc.asUrl(file));
  }

  public void categoryDefinition(File file) {
    addArg("categoryDefinition", FileMisc.asUrl(file));
  }

  public void runUsingPdeInstallation() throws Exception {
    runUsing(PdeInstallation.from(EclipseRelease.official(eclipseVersion)));
  }
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions