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

Sort Project Configurators according to their runsBefore/runsAfter attributes (#1032) #1215

Conversation

thomasdelhomenie
Copy link
Contributor

Fixes #1032

Context

When adding a ProjectConfigurator with the extension "org.eclipse.buildship.core.projectconfigurators", the "runsBefore" and "runsAfter" attributes are not considered. No matter the values set on these attributes, the new ProjectConfigurator is always executed the default ones.

This change makes sure that the ProjectConfigurator objects returned by the method org.eclipse.buildship.core.internal.extension.InternalProjectConfigurator.from(List) are always sorted according the these attributes.

The related tests have been adapted to test the behavior of the org.eclipse.buildship.core.internal.extension.InternalProjectConfigurator.from(List) method.

#1032

…tributes (eclipse-buildship#1032)

When adding a ProjectConfigurator with the extension "org.eclipse.buildship.core.projectconfigurators", the "runsBefore" and "runsAfter" attributes are not considered.
No matter the values set on these attributes, the new ProjectConfigurator is always executed the default ones.

This change makes sure that the ProjectConfigurator objects returned by the method org.eclipse.buildship.core.internal.extension.InternalProjectConfigurator.from(List<ProjectConfiguratorContribution>) are always sorted according the these attributes.

The related tests have been adapted to test the behavior of the org.eclipse.buildship.core.internal.extension.InternalProjectConfigurator.from(List<ProjectConfiguratorContribution>) method.
@donat
Copy link
Contributor

donat commented Dec 27, 2022

@thomasdelhomenie thank you for the contribution! I'd like to approve and merge your changes, however, you need to sign the Eclipse Contributor Agreement before: https://www.eclipse.org/projects/handbook/#resources-github

@thomasdelhomenie
Copy link
Contributor Author

@donat done, I signed the ECA.

@donat donat merged commit 14cc251 into eclipse-buildship:master Jan 4, 2023
@donat
Copy link
Contributor

donat commented Jan 4, 2023

@thomasdelhomenie Thank you for the contribution!

@donat donat added this to the 3.1.7 milestone Jan 4, 2023
@thomasdelhomenie
Copy link
Contributor Author

@donat my pleasure :) thanks! Any plan for a new release?

@donat
Copy link
Contributor

donat commented Jan 4, 2023

No hard deadlines yet, but I want to have a release soon-ish. One thing I really want in the next release is this PR (WIP). In the meanwhile, snapshot releases are produced fairly regularly. I'll make sure there's one with your changes.

@thomasdelhomenie
Copy link
Contributor Author

ok great, thanks!

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.

ProjectConfigurator runsBefore/runsAfter ordering is not respected
2 participants