You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix Windows batch file syntax error in escapePipes subroutine
The original code used 'if "\!char\!"=="^""' to check for double quote
characters, but this syntax doesn't work correctly with delayed expansion
enabled in Windows batch files, causing "The syntax of the command is
incorrect" errors.
The fix introduces an intermediate variable 'isQuote' and uses the proper
batch file syntax 'if "\!char\!"==""""' (four consecutive quotes) to
check for a double quote character. This is the standard way to represent
a literal quote in batch file comparisons.
This resolves the IT failures on Windows for tests that use jvm.config
files, including:
- MavenITmng8598JvmConfigSubstitutionTest
- MavenITmng6255FixConcatLines
- MavenITmng6223FindBasedir
0 commit comments