Skip to content
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

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

Merged
merged 2 commits into from
Jan 15, 2024

Conversation

oleosterhagen
Copy link
Contributor

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(...).

…ildship#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.
@donat donat self-assigned this Jan 15, 2024
Copy link
Contributor

@donat donat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed and tested; LGTM!

@donat donat merged commit 548ec8d into eclipse-buildship:master Jan 15, 2024
2 checks passed
@donat donat added this to the 3.1.9 milestone Jan 15, 2024
@oleosterhagen oleosterhagen deleted the issue-1288 branch January 15, 2024 17:22
@oleosterhagen
Copy link
Contributor Author

Thank you!

@donat
Copy link
Contributor

donat commented Jan 16, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Importing java-library builds via "Projects from Folder or Archive" does not work correctly
2 participants