gnodet commented on code in PR #10906:
URL: https://github.com/apache/maven/pull/10906#discussion_r3646716314
##########
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupInvoker.java:
##########
@@ -918,6 +931,29 @@ protected int calculateDegreeOfConcurrency(String
threadConfiguration) {
+ "'. Supported are int and float values ending with C.");
}
}
+ // Helper method to normalize MSYS-style paths on Windows
+ private String normalizeMsysPath(String path, C context) {
+ if (path != null && isWindows() && path.startsWith("/")) {
+ try {
+ // Convert /d/path to D:\path
+ final String drive = path.substring(1,
2).toUpperCase(Locale.ENGLISH);
+ final String rest = path.substring(2).replace("/", "\\");
+ final String normalized = drive + ":" + rest;
+ context.logger.debug("Normalized MSYS path '" + path + "' to
'" + normalized + "'");
+ System.out.println("Normalized MSYS path '" + path + "' to '"
+ normalized + "'");
Review Comment:
Debug leftover — `System.out.println` must be removed. The line above
already uses `context.logger.debug(...)` which is the correct approach.
--
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]