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

Enhance MavenProjectImporter to stop scanning the specified exclusion list #1636

Merged
merged 1 commit into from
Jan 12, 2021

Conversation

snjeza
Copy link
Contributor

@snjeza snjeza commented Dec 21, 2020

Fixes redhat-developer/vscode-java#1698

The issue happens because the LocalProjectScanner class ignores the java.import.exclusions property and always scans the whole directory.

Signed-off-by: Snjezana Peco snjezana.peco@redhat.com

Signed-off-by: Snjezana Peco <snjezana.peco@redhat.com>
@rgrunber
Copy link
Contributor

rgrunber commented Jan 5, 2021

I'll have a look at this soon.

Copy link
Contributor

@rgrunber rgrunber left a comment

Choose a reason for hiding this comment

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

Change seems to work. BasicFileDetector is doing the work the previous code was.

At first I wasn't sure how changes in applies(..) would affect anything but it's as you said. LocalProjectScanner is being passed an incorrect folder rather than the directories that have been verified. I think this can be merged.

Copy link
Contributor

@testforstephen testforstephen left a comment

Choose a reason for hiding this comment

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

LGTM.

@testforstephen testforstephen changed the title Enhance MavenProjectImporter Enhance MavenProjectImporter to stop scanning the specified exclusion list Jan 12, 2021
@testforstephen testforstephen added this to the Mid January 2021 milestone Jan 12, 2021
@testforstephen testforstephen merged commit e2dfee0 into eclipse-jdtls:master Jan 12, 2021
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.

Is my configuration of java.import.exclusions correct?
3 participants