[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [p2-dev] How optional is described in RequiredCapability ?

On 10/13/2016 05:33 PM, Alena Laskavaia wrote:
Not sure what you asking. To create IRequirement through API
boolean optional = ...;
IRequirement requirement = MetadataFactory.createRequirement(namespace, id,
                        p2versionRange, filter, optional ? 0 : 1, 1, greedy);
Thanks a lot! So, optional == (min == 0).

--
Mickael Istria
Eclipse developer for Red Hat Developers
My blog - My Tweets