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

Cross-Platform Geb FileInput module support #122

Merged
merged 6 commits into from
Jan 15, 2025

Conversation

matrei
Copy link
Contributor

@matrei matrei commented Jan 2, 2025

This resolves an issue on Windows when using the file from container.copyFileToContainer() with the Geb FileInput module.

As this is a new feature I created it against a new 4.2.x branch for Grails 6.

matrei added 5 commits January 2, 2025 15:01
This resolves an issue on Windows when using the file from `container.copyFileToContainer()` with the Geb FileInput module.
`macos-latest` does not seem to have container support.
`windows-latest` does not seem to provide a container environment.
@matrei matrei requested review from jdaugherty and sbglasius January 2, 2025 14:23
- Use `replace(char, char)` instead of `replaceAll(String, String)` to avoid the overhead of regex pattern compilation.
- Replace hardcoded string literals with `File.separatorChar`, ensuring the `replace` operation is a no-op on non-Windows hosts where no substitution is needed.
@matrei matrei merged commit 59cf0f6 into 4.2.x Jan 15, 2025
5 checks passed
@matrei matrei deleted the matrei/feat-cross-platform-upload branch January 15, 2025 22:57
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