Community
Participate
Working Groups
#0. TL;DR This is to ask if we can use the linked resource approach to persist the .classpath file out of the project root. (i.e. into the workspace metadata folder) #1. Background A lot of VS Code Java (back-ended by Eclipse JDT.LS) complains that after importing Java projects, a lot of files generated in the root of each project, including: - .project - .settings/ - .classpath (this is generated by JDT) They hope these files not be generated at the project root since it will mess up their SCM. Here is the original issue, which is the most top one in the repo: https://github.com/redhat-developer/vscode-java/issues/618 We have a discussion at the Resources plugin https://bugs.eclipse.org/bugs/show_bug.cgi?id=576013, where Mickael suggested to use linked resource to 'redirect' the .classpath file out of the project root.
If you have POC, please try ro run all JDT tests with it, that would be the best answer if the POC works or not with JDT. I assume lot of code expects .classpath to be in the project root. So if you manage to keep IResource API to return .classpath as a member of the project and also find it via project/.classpath path - the rest would be probably just effort to cleanup code that uses java.util.File etc to access it (if there is such code).