Community
Participate
Working Groups
There are cases where ppl just need to store IUs on disk into a file without having to go through the complexity (and potential scalability issues) of the repository manager.
Would it be possible to also add API to serialize/deserialize List<IArtifact>?
understood but we do need to take care of API contract issues. If they are written out then they have to be readable. Haven't we recreated the repository structure then?
> understood but we do need to take care of API contract issues. If they are written out then they have to be readable. Haven't we recreated the repository structure then? Please detail your concerns. This API will write out a set of IUs and read them back. Nothing is to be specified about the format of the file. The only contract will be that we want the reader to be able to read back some old formats The current implementation (not committed) uses the MetadataWriter class which generates something equivalent to the <units/> element found in a repo.
i see. So the serialized form will not be API. great. Thanks for the clarification.
I have released two classes called IUSerializer and IUDeserializer in a package called org.eclipse.equinox.p2.metadata.io in the p2.metadata.repository bundle.
Reopening, I missed the need to serialize IArtifactDescriptor...
Given that it does not really make sense to just be able to store artifact descriptors by themselves, the only API that will be provided is for IUs.