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

Replace GradleClasspathContainer on project only if content changed #369

Merged
merged 1 commit into from
Feb 13, 2017
Merged

Replace GradleClasspathContainer on project only if content changed #369

merged 1 commit into from
Feb 13, 2017

Conversation

pwoelfle
Copy link
Contributor

This pull request fixes the problem that on each synchronization the GradleClasspathContainer is replaced on the project, although there are no changes. This issue caused on big projects unnecessary incremental builds, because the project description is marked as changed after the classpath container is replaced. See also Gradle discussion [1].

Eclipse internal checks if the old classpath container differs from the new classpath container [2]. Therefore the fix only implements the equals() and hashcode() of the GradleClasspathContainer to fix the problem.

[1] https://discuss.gradle.org/t/classpath-container-update-on-synchronization/21499
[2] org.eclipse.jdt.internal.core.SetContainerOperation.executeOperation()

@pwoelfle
Copy link
Contributor Author

I just signed the ECA. How to re-run the ip-validation?

@oehme
Copy link
Member

oehme commented Feb 11, 2017

Thank you for the fix and for thinking of a test case as well! This looks good to me.

You need to sign off on your commit (commit -s) for the IP validation to accept it.

@oehme oehme added this to the Buildship 2.0.1 milestone Feb 11, 2017
…r content changed.

Signed-off-by: Pascal Woelfle <pascal_woelfle@web.de>
@pwoelfle
Copy link
Contributor Author

@oehme IP validation is now successful.

@oehme oehme assigned oehme and unassigned donat Feb 13, 2017
@oehme oehme merged commit 2f07bc9 into eclipse:master Feb 13, 2017
@oehme
Copy link
Member

oehme commented Feb 13, 2017

Thank you Pascal!

@pwoelfle pwoelfle deleted the bugfix/gradleClasspathContainer branch February 13, 2017 09:13
@pwoelfle
Copy link
Contributor Author

You're welcome Stefan

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

Successfully merging this pull request may close these issues.

3 participants