-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support .settings folders as linked resources #1364
Comments
@sthdev have you considered using a symbolic link instead? Beside that, you might be interested in my proposal here: |
Thanks for the hint. I'll try it out. |
Unfortunately, this does not work. It is possible to create a directory junction (on Windows) named |
Git supports symbolic links: https://stackoverflow.com/questions/58814356/how-to-create-symlink-for-files-in-git-repository I just don't know how well this is supported with (j)git under windows. |
But only for files, not for folders. |
@sthdev can you provide an integration-test to demonstrate the issue? |
A colleague of mine has each separate .prefs file as linked resource, and that seems to work fine both in PDE and Tycho. |
"native" symbolic links should work fine; but .project (Eclipse) linked resources are not checked by Tycho so far. |
@laeubi which component is responsible for resolving the project settings? I am setting up an integration test and wondering how to name it or whether there already is an integration test for that component. |
@sthdev you can simply add a project in to the tycho-itest module and name it for example "linked-files": |
That would be too cumbersome. In our case, the *.pref files in the root .settings folder of each repository are defined in an Oomph setup model. When some settings change, the setup model is updated. As soon as someone, checks out a repository with that setup model, those new settings are rolled out to that repository, as well. In case a new *.pref file is added, your suggestion would require to add it as a linked resource in all projects and all repositories. Doing that manually is too cumbersome and error-prone. I do not know if there is an automated way to do it but it would have to be triggered by the setup model. |
Added PR #1626 |
You can trigger any (checked in) launch config from Oomph. Instead of using Oomph for distributing project preferences, I have created a JUnit test to both copy the files from a template project and to also check some additional constraints for my setups at work. Has the added benefit of breaking the CI build if such constraints fail or if the template copy operation modifies the git working dir. |
It would be nice if Tycho would support
.settings
folders that are included as a linked resource in a project instead of a physical folder.Background:
Our repositories are structured like this:
The
.settings
folder is stored at the root of the repository in order to have on location for the settings of all projects. The individual projects do not have an own.settings
folder but include the root.settings
folder as a linked resource.Linked resources are stored in the
.project
file of a project like this:This works fine in Eclipse but is not supported by Tycho. Tycho reports that no
.settings\org.eclipse.jdt.core.prefs
could be found in the individual project folders.The text was updated successfully, but these errors were encountered: