Hi,
We build lots of features and bundles. We create p2 repositories for a feature or set of features. These repositories will be merged to one p2 repository. This is done as follow:
FeaturesAndBundlesPublisherApplication application = new FeaturesAndBundlesPublisherApplication();
application.setArtifactLocation(toRepository);
application.setMetadataLocation(toRepository);
String[] args = new String[] { "-publishArtifacts",
"-publishArtifactRepository",
"-overwriteArtifacts", "-append",
"-source", fromRepository};
application.run(args);
This will merge the full repository into an existing repository.
Now we want to export from the full repository a subset to a new repository based on features. So it also copies all required bundles to the new repository.
There is a possibility by using the FeaturesAndBundlesPublisherApplication by using in stead of the "-source" argument the "-bundles" and "-features" argument.
In this case we had to find out which bundles belong to the features to export.
Any suggestion how to do this is welcome.