Skip to content

Conversation

@kaby76
Copy link
Contributor

@kaby76 kaby76 commented Oct 29, 2025

This PR fixes #4660, where the location of the parser test input files was incorrect. Trash trgen assumes the initial directory is where the desc.xml file resides. Any example inputs should be relative to that. So, "examples/" must be part of the string because "**/*.java" includes not only those .java files with "examples/**/*.java", but also with "target/**/*.java" and "Generated-Java/**/*.java"!

Trash trgen assumes the initial directory location to be that where the desc.xml file resides. Any example inputs should be relative to that. So, "examples/" must be part of the string because "**/*.java" includes not only those .java files in "examples/", but also in "target/" and "Generated-*/"!
@kaby76 kaby76 marked this pull request as ready for review October 29, 2025 12:31
@kaby76 kaby76 changed the title [java20] Fix for #4660 [java20] Fix for #4660: location of parsing tests incorrect. Oct 30, 2025
@teverett
Copy link
Member

teverett commented Nov 8, 2025

@kaby76 thanks!

@teverett teverett merged commit c164eb4 into antlr:master Nov 8, 2025
35 checks passed
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.

[java20] Wrong directory specified using <inputs>.

2 participants