Skip to content

Fix excludes ant pattern on Windows#539

Merged
johnrengelman merged 1 commit intoGradleUp:masterfrom
trask:fix-excludes-on-windows
Jan 19, 2020
Merged

Fix excludes ant pattern on Windows#539
johnrengelman merged 1 commit intoGradleUp:masterfrom
trask:fix-excludes-on-windows

Conversation

@trask
Copy link
Copy Markdown
Contributor

@trask trask commented Jan 16, 2020

Fixes this use case on Windows:

  relocate('io.opentelemetry', 'io.opentelemetry.auto.shaded.io.opentelemetry') {
    exclude 'io.opentelemetry.auto.**'
  }

The fix is to explicitly pass separator (/) to SelectorUtils.matchPath. The default when it's not passed is File.separator, so this change should have no effect on non-Windows OS.

@johnrengelman johnrengelman merged commit d9567dd into GradleUp:master Jan 19, 2020
@trask
Copy link
Copy Markdown
Contributor Author

trask commented Jan 20, 2020

Thx!

@johnrengelman johnrengelman added this to the 6.0 milestone Mar 7, 2020
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.

2 participants