Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-dev] Get Metadata of a given repo from Tycho

IArtifactRepository instances implement IQueryable<IArtifactKey>, so you can get all artifact keys with an “all” query:

    repository.query(QueryUtil.createMatchQuery(IArtifactKey.class, "true"), null)

(from org.eclipse.tycho.repository.local.LocalArtifactRepositoryP2APITest.allKeysIn)

Regards
Tobias


From: tycho-dev-bounces@xxxxxxxxxxx [mailto:tycho-dev-bounces@xxxxxxxxxxx] On Behalf Of Mickael Istria
Sent: Freitag, 12. September 2014 10:44
To: Tycho developers list
Subject: [tycho-dev] Get Metadata of a given repo from Tycho

Hi all,

In a Mojo I'm developing, I'd like to be able to list all available artifacts that are part of given p2 repo.
What is a good way of doing that? I couldn't find a good way of doing that with P2Resolver.

Cheers,
-- 
Mickael Istria
Eclipse developer at JBoss, by Red Hat
My blog - My Tweets

Back to the top