Skip to content

Add a check that a file is in the directory it is supposed to be in#513

Merged
turkeylurkey merged 1 commit into
OpenLiberty:generate-features-updatefrom
turkeylurkey:issue-1976
May 8, 2026
Merged

Add a check that a file is in the directory it is supposed to be in#513
turkeylurkey merged 1 commit into
OpenLiberty:generate-features-updatefrom
turkeylurkey:issue-1976

Conversation

@turkeylurkey
Copy link
Copy Markdown
Member

Part of OpenLiberty/ci.maven#1976

This method calculates a path assuming the file is in the directory passed in. If it is not there then there is an off-by-one error and the plugin may go ahead and silently copy the file to the incorrect location.

Add an assertion when an invalid parameter is passed. Just print a traceback to the log to prompt the plugin developer to fix the bug. Should not happen in production but if it does the user can open an issue but otherwise keep working.

Signed-off-by: Paul Gooderham <turkeyonmarblerye@gmail.com>
@turkeylurkey turkeylurkey merged commit 0d5d1de into OpenLiberty:generate-features-update May 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants