repository – Eclipse: Access Target Definition by code

I use Eclipse with a target platform. The target definition is an xml-file listing the P2-repositories with the corresponding features. I know how to check and modify the target definition via the Eclipse IDE.

I am wondering whether it’s possible to load the target definition via Java code? In other words: is there a way to write a program that loads the (active) target definition?

Once I have access to the target definition, I would like to extract the P2-repositories and perform some P2QL queries on them. Unfortunately, I have no idea how to even access the target definition by code…

Read more here: Source link