eclipse-buildship / buildship

The Eclipse Plug-ins for Gradle project.
535 stars 171 forks source link

Prevent execution of the Java Resource Import Configurator #1288 #1293

Closed oleosterhagen closed 10 months ago

oleosterhagen commented 10 months ago

Fixes #1288

When importing Gradle projects from a folder with the generic project configurator, other configurators like the ProjectWithJavaResourcesImportConfigurator must not run. Otherwise resources in subprojects could be imported twice.

To prevent the execution of secondary configurators the method shouldBeAnEclipseProject(...) has to return true for the root of Gradle projects.

Note: In the implementation of the integration test I have to wait for the SmartImportJob to finish. Unfortunately the job family of this job is the non-API job class. This is why I used Class.forName(...).

oleosterhagen commented 10 months ago

Thank you!

donat commented 10 months ago

@oleosterhagen I've mentioned you in the 3.1.9 release notes. Once again, thanks for all the work! We do appreciate it.