[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [tycho-dev] New feature for Tycho
|
I would consider such a feature dangerous as it assumes that your code
is always compatible with changes in the target.
You better solve your issue by using proper version ranges for imports
instead of hard-coded fixed versions.
Am 03.07.20 um 10:44 schrieb Mickael Istria:
Hi,
On Fri, Jul 3, 2020 at 10:37 AM Maxime Maurin <maxime.maurin@xxxxxxxxxxx
<mailto:maxime.maurin@xxxxxxxxxxx>> wrote:
I'm going to develop a feature to keep the Manifest files of the
application updated when the target platform changes. Is this a
feature that the community might be interested in? Is it interesting
idea, once finished, to commit this modification to Gerrit?
I think it's going to be technically quite difficult, since Tycho needs
to read MANIFEST.MF files and resolve target platform very early (as a
consequence of https://bugs.eclipse.org/bugs/show_bug.cgi?id=353889 ),
and that doesn't leave much room for changing the MANIFEST.MF file and
make this target-platform properly updated.
That said, it might work (because Tycho actually re-resolve the TP a bit
later); it's still worth trying.
I'm personally not very enthusiastic about making this a feature of
Tycho, because the workflow you mention with automatically changing
versions in MANIFEST.MF sounds like a bad OSGi practice. OSGi and
Eclipse development models have strong semantics about dependencies and
version ranges, and anything that automates them without developer
control or understanding is basically putting a high risk on
quality/reusability and other strong values of this model.
Does this step really need to be performed at build time, or can it be a
preliminary step? Does it need to be automated or can it be done
manually? Usually, the right target for anything that's about editing
MANIFEST.MF is PDE.
Cheers,
_______________________________________________
tycho-dev mailing list
tycho-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/tycho-dev