Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-dev] Building Tycho against a locally built version of p2

Instructions did not work until I switched the build to use tycho 0.13.

I'll cleanup now redundant versions from the .product file shortly.

--
Regards,
Igor

On 11-11-16 2:47 AM, Oberlies, Tobias wrote:
Igor Fedorenko wrote:
I guess this is a question for Tobias. I am having difficulties building
Tycho with locally patched p2 according and I am not sure I understand
how this is supposed to work at all. I am trying to follow instructions
from Tycho wiki [1].

  From what I can tell, version of p2 used by tycho is locked in
tycho-bundles-target/build.target and I don't see how
tycho-p2-runtime/tycho-p2-runtime.product can require different p2
bundle versions unless the same version is also required in
tycho-bundles-target/build.target... which is not easily possible
because build.target specifies p2 feature, not individual bundles. Am I
missing something or Tycho dev instructions got out of date?

The instructions should work, even with the target file. This is what happens technically in the tycho-p2-runtime module: The target platform is the result of the target _file_ resolution plus everything which has been built locally (i.e. the patched p2 bundle). The dependency resolution then resolves the product file against the target platform, i.e. it can pick either the version from the target file or the locally built version. By specifying an explicit version in the product file, you can force the dependency resolution to take the locally built one.

(Btw, this is a very good example why we need to distinguish "target platform" and "dependency resolution" - because otherwise it is impossible to explain what Tycho actually does...)

On a related subject, there is no need to specify p2 version both
.target and .product file.

This is correct. With Tycho 0.13.0, the target platform only contains the content&  versions specified in the target file.

Regards
Tobias

[1]
http://wiki.eclipse.org/Developing_Tycho#Building_Tycho_against_a_locally_
built_version_of_p2

--
Regards,
Igor
_______________________________________________
tycho-dev mailing list
tycho-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-dev
_______________________________________________
tycho-dev mailing list
tycho-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-dev


Back to the top