buildship icon indicating copy to clipboard operation
buildship copied to clipboard

composite builds is not correctly update the connection.project.dir

Open xxxxDyeAxxxx opened this issue 2 years ago • 1 comments

When I include B build in A build includeBuild('../B') and then I remove it

the "connection.project.dir" in B does not comply with removal and retains the value of build A. that lead to Problems one of which is that project B is no longer correctly refreshable by eclipse

xxxxDyeAxxxx avatar Feb 15 '23 05:02 xxxxDyeAxxxx

Encountered the same problem. This causes weird issues if you have a project - e.g. "project1" - that is contained in two builds "core" and "custom".

If I import build "core" first everything is fine ("connection.project.dir" is set to "core"). If I delete all projects from workspace and then import build "custom" I end up getting both builds in my workspace and the classpath of "project1" is invalid.

Image

This is because during the import of build "custom", "GradleClasspathContainerInitializer.loadClasspath()" returns build "core" for

GradleCore.getWorkspace().getBuild("project1");

which triggers an additional synchronization of build "core".

loetifuss avatar May 06 '25 11:05 loetifuss