Bug 571520 - Allow to specify a target file as an alternative to a target
Summary: Allow to specify a target file as an alternative to a target
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Tycho (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Christoph Laeubrich CLA
QA Contact:
URL:
Whiteboard:
Keywords: noteworthy
Depends on:
Blocks:
 
Reported: 2021-02-26 00:44 EST by Christoph Laeubrich CLA
Modified: 2021-04-28 16:52 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christoph Laeubrich CLA 2021-02-26 00:44:22 EST
Currently it is possible to define one or more target artifacts.

<target>
 <artifact>
    <groupId>org.example</groupId>
    <artifactId>target-definition</artifactId>
    <version>1.0.0-SNAPSHOT</version>
 </artifact>
</target>

It would be good to have the opportunity to specify a target file as an alternative 

<target>
 <file>${project.basedir}/local.target</file>
</target>

This way it won't be necessary to define an exclusive module for that. It would also allow to manage special extra requirements of a module in a more comfortable way because one can use the target editor instead.
Comment 1 Christoph Laeubrich CLA 2021-02-26 01:14:28 EST
We are taking a lot of effort to find the target file, having it specified directly on the other hand is rather obvious and simple.
Comment 2 Eclipse Genie CLA 2021-02-26 03:02:41 EST
New Gerrit change created: https://git.eclipse.org/r/c/tycho/org.eclipse.tycho/+/176925
Comment 3 Mickael Istria CLA 2021-02-26 03:05:23 EST
Good idea.
Usage of a Maven artifact is a case that was driven by Eclipse Platform build, which spans across different Git repos/reactors all sharing the .target file which is published to repo.eclipse.org.
But this is not the usual case and many projects are often simpler and would be happier with you suggestion than with the current required artifact.
Comment 4 Christoph Laeubrich CLA 2021-02-26 03:11:22 EST
I think in general a target can even reside on a remote URL... but this is another story.
Comment 6 Mickael Istria CLA 2021-02-26 04:00:06 EST
Thanks Christoph! Can you please add a note about it to release notes?
Comment 8 Lars Vogel CLA 2021-03-26 05:05:50 EDT
(In reply to Christoph Laeubrich from comment #4)
> I think in general a target can even reside on a remote URL... but this is
> another story.

That would be really nice but AFAIK PDE does not support that a target definition can be remotely.
Comment 9 Christoph Laeubrich CLA 2021-03-26 06:01:03 EDT
I think Eclipse has support for remote file system through EFS than it should work with PDE also, but I have never tested (or needed) this.
Comment 10 Mickael Istria CLA 2021-03-26 06:06:11 EDT
(In reply to Christoph Laeubrich from comment #9)
> I think Eclipse has support for remote file system through EFS than it
> should work with PDE also, but I have never tested (or needed) this.

EFS is a bit tricky and overkill for that case. PDE can simply just allow an URL as input in the target platform preference page and fetch the file locally; that would be good enough.
Anyway, this should proably be discussed in some ticket targeting PDE, not Tycho ;)
Comment 11 Eclipse Genie CLA 2021-04-06 07:26:33 EDT
New Gerrit change created: https://git.eclipse.org/r/c/tycho/org.eclipse.tycho/+/178903