Community
Participate
Working Groups
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.
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.
New Gerrit change created: https://git.eclipse.org/r/c/tycho/org.eclipse.tycho/+/176925
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.
I think in general a target can even reside on a remote URL... but this is another story.
Gerrit change https://git.eclipse.org/r/c/tycho/org.eclipse.tycho/+/176925 was merged to [master]. Commit: http://git.eclipse.org/c/tycho/org.eclipse.tycho.git/commit/?id=bccde4fef53ca36bcdceb421dfa081b177fdb297
Thanks Christoph! Can you please add a note about it to release notes?
https://wiki.eclipse.org/Tycho/Release_Notes/2.3#Target_files_can_be_specified_directly_now
(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.
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.
(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 ;)
New Gerrit change created: https://git.eclipse.org/r/c/tycho/org.eclipse.tycho/+/178903
Gerrit change https://git.eclipse.org/r/c/tycho/org.eclipse.tycho/+/178903 was merged to [master]. Commit: http://git.eclipse.org/c/tycho/org.eclipse.tycho.git/commit/?id=495b2769edf65cc60a2141b1cfb41a8894b19cee