Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-dev] How to access cached bundles?

Hi all,

I'm maintaining a Mojo which has for purpose to turn a .target into a p2 repository containing all IUs available in the given target: https://github.com/jbosstools/jbosstools-maven-plugins/blob/master/tycho-plugins/target-platform-utils/src/main/java/org/jboss/tools/tycho/targets/TargetToRepoMojo.java
It's working correctly so far, but it takes hours to re-download everything. Instead, I'd like to find a way to re-use Tycho cache and to get artifacts from cache when available instead of re-downloading them everytime. So here is my question: what is a good way to make queries in Tycho cache and to copy artifacts from cache? I had a look at Tycho code but didn't succeed to figure that out by myself.

Thanks in advance for your help.

PS: If you think this mojo can be more widely used, feel free to add comments to https://bugs.eclipse.org/bugs/show_bug.cgi?id=389052 . I'd still be glad to move it to Tycho.
--
Mickael Istria
Eclipse developer at JBoss, by Red Hat
My blog - My Tweets

Back to the top