Commit ff83212
committed
Fix Windows jvm.config parsing and add debug logging to scripts
- mvn.cmd: Use 'cmd /c' to run JvmConfigParser in a subshell, ensuring
file handles are properly released before reading the temp file.
The previous 'for /f' with backticks approach did not correctly
capture the Java output on Windows.
- mvn, mvn.cmd: Add debug logging controlled by MAVEN_DEBUG_SCRIPT
environment variable. When set, both scripts will output detailed
information about jvm.config parsing, including:
- Path to jvm.config file
- Java command and arguments
- Parser exit code and output
- Final MAVEN_OPTS/JVM_CONFIG_MAVEN_OPTS value
- Full JVM command line before launching Maven
This helps diagnose jvm.config issues on CI systems where the log
files are the primary debugging tool.1 parent 7685323 commit ff83212
2 files changed
+10
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
294 | 294 | | |
295 | 295 | | |
296 | 296 | | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
297 | 302 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
275 | 280 | | |
276 | 281 | | |
277 | 282 | | |
| |||
0 commit comments