-
Notifications
You must be signed in to change notification settings - Fork 637
Open
Description
Summary
Running ./gradlew run on Windows fails because checkForTokenDefinitionsInWrongPath only whitelists paths that contain the hard-coded substring /test_tokens/. Windows paths use backslashes, so the guard misses src\test\resources\test_tokens and throws.
Steps to reproduce
- Checkout
masterat e0794ee on Windows 11. - Ensure Java 17 is installed (Temurin 17.0.13+11).
- Run
gradlew.bat runinside the repo.
Actual result
> Task :run FAILED
There is a token definition file (0x1234...json) placed in a directory where it does not belong (C:\Users\me\tokens\src\test\resources\test_tokens)
The walk treats the Windows-absolute path as unknown because it looks for /test_tokens/.
Expected result
The guard should allow test fixtures regardless of platform path separator so Windows contributors can run the task successfully.
Environment
- Commit: e0794ee
- OS: Windows 11 Pro 23H2
- JDK: Temurin 17.0.13+11
Related PR
- fix: make stray token detection platform agnostic #977 normalizes paths before comparing, so the allowed directories are recognised on Windows and Linux alike.
Metadata
Metadata
Assignees
Labels
No labels