Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-dev] Need an overview of the tycho internals.

Tycho ships its p2 runtime it several pieces (i.e. maven artifacts).
tycho-p2-runtime is a zip file that includes standard p2 and equinox
bundles and there are few tycho-specific bundles like
org.eclipse.tycho.p2.resolver.impl that are shipped separately.

At runtime tycho first resoles tycho-p2-runtime and other bundles using
maven artifact resolution logic, then it unzips tycho-p2-runtime. This
logic is implemented in
org.eclipse.tycho.p2.facade.internal.TychoP2RuntimeLocator.

To launch p2 runtime, tycho creates dynamically config.ini (or just
-Dosgi.bundles, don't remember for sure) to include all involved
bundles. This logic is implemented
org.eclipse.tycho.equinox.launching.internal.DefaultEquinoxLauncher.

There is also a convenience
org.eclipse.tycho.p2.facade.internal.P2ApplicationLauncher that can be
used to launch one of eclipse applications included in tycho p2 runtime.

--
Regards,
Igor

On 11-07-27 10:55 AM, Pradeep Fernando wrote:
Hi devs,


In our build environment, we make bundles using felix bundle plugin. I
tried to migrate my build system to tycho based build, but found that
tycho is not supporting pom first approach (our whole build is based
on pom first approach).

Therefore I thought of writing my own build plugin to generate
p2-repositories and profiles (products). I think i can make use, some
of tychos components while doing so. AFAIK tycho has a equinox
launcher and it is used for invoke p2-director application and tests.

Then again, tycho has a p2.tools bundle.

*AFAIK, when we are provisioning external platform, you got to have
the minimum osgi runtime with you. How tycho get this minimal runtime
?
* how org.eclipse.tycho.p2.tools.impl get deployed in this env ?


What i need is a small overview. I have already looked in to the code.
But still struggling to grab that big picture. Any pointers
suggestions are appreciated.

thanks in advance



Back to the top