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

Bugfixes in handling of files target property #1725

Merged
merged 20 commits into from
May 5, 2023
Merged

Bugfixes in handling of files target property #1725

merged 20 commits into from
May 5, 2023

Conversation

lhstrh
Copy link
Member

@lhstrh lhstrh commented May 2, 2023

Resources identified by some string and to be looked up relative to a source file, a package, or on the class path, could be files or directories, and there is no way to tell what it is until a matching entry has been found. Therefore, it is most convenient if we provide a lookup mechanism that will work with strings, regardless of whether they point to files or directories. PR #1700 that was merged recently, attempted to furnish this API, but introduces some bugs. This PR fixes those bugs and tries to make the public APIs a bit more friendly improves the documentation.

One issue is that file interactions are different depending on whether tests are executed through JUnit or using lfc. We need to add a few unit tests to get full coverage of FileUtil, but we should merge this in first because it address the current CI failure on master.

@lhstrh lhstrh marked this pull request as ready for review May 5, 2023 03:08
@lhstrh lhstrh requested a review from petervdonovan May 5, 2023 03:25
@lhstrh lhstrh merged commit 937045f into master May 5, 2023
@lhstrh lhstrh deleted the files-fix branch May 5, 2023 05:53
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.

2 participants