elharo opened a new pull request, #563:
URL: https://github.com/apache/maven-jar-plugin/pull/563

   Fixes #557
   
   Adds a test that verifies the `Multi-Release: true` manifest entry is added 
when the class output contains `META-INF/versions/` files (e.g. 
`META-INF/versions/9/module-info.class`).
   
   The detection logic uses `File.separatorChar` to build the path prefix:
   ```java
   p -> p.startsWith("META-INF" + File.separatorChar + "versions" + 
File.separatorChar)
   ```
   
   On Windows, `File.separatorChar` is `\\`, so the prefix becomes 
`META-INF\\versions\\`, which never matches the forward-slash paths returned by 
`FileSetManager.getIncludedFiles()` (e.g. `META-INF/versions/9/test.txt`).
   
   This test passes on Linux/macOS but fails on Windows. The fix will replace 
`File.separatorChar` with `'/'".


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to