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

[7.x] Fix incremental build support copying REST api and tests #52896

Merged
merged 1 commit into from
Feb 27, 2020

Conversation

jakelandis
Copy link
Contributor

Backports the following commits to 7.x:

…#52860)

A recent PR elastic#52114 introduced two new tasks to copy the REST api and tests.
A couple bugs were found in that initial PR that prevents the incremental
build from working as expected.

The pattern match of empty string is equivalent to match all and it was coded
as match none. Fixed with explicit checks against empty patterns.

The fileCollection.plus return value was ignored. Fixed by changing how the
input's fileTree is constructed.

If a project has an src/test/resources directory, and tests are being copied
without a rest-api-spec/test directory could result no-op. Masked by the other
bugs and fixed by minor changes to logic to determine if a project has tests.
@jakelandis jakelandis changed the title [7.x] Fix incremental build support for copying REST api and tests (#52860) [7.x] Fix incremental build support copying REST api and tests Feb 27, 2020
@jakelandis jakelandis merged commit 1c29140 into elastic:7.x Feb 27, 2020
@jakelandis jakelandis deleted the backport/7.x/pr-52860 branch February 27, 2020 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant