Skip to content

Conversation

@fridrich
Copy link

@fridrich fridrich commented Nov 8, 2025

Some projects have among the test resources various binary files along with property files that actually need to be filtered. The binary files can be for instance dummy P12 or JKS files. When the pom.xml has filtering enabled for those resources, the parser tries to parse them as text files with the given encoding. But they are more then likely not to be valid UTF-8 or ISO-8859-1, ... files. An MalformedInputException is thrown in that case.

This fix catches that exception if it is thrown and, in that case, assumes that the file is a binary and copies it without filtering.

The included test will fail without the fix and pass with the fix

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.

1 participant