# This patch file was generated by NetBeans IDE # Following Index: paths are relative to: C:\Users\mkleint\src\core-main2 # This patch can be applied using context Tools: Patch action on respective folder. # It uses platform neutral UTF-8 encoding and \n newlines. # Above lines and this line are ignored by the patching process. Index: maven/src/org/netbeans/modules/maven/execute/MavenCommandLineExecutor.java --- maven/src/org/netbeans/modules/maven/execute/MavenCommandLineExecutor.java Base (BASE) +++ maven/src/org/netbeans/modules/maven/execute/MavenCommandLineExecutor.java Locally Modified (Based On LOCAL) @@ -279,9 +279,14 @@ for (Map.Entry entry : config.getProperties().entrySet()) { if (!entry.getKey().startsWith(ENV_PREFIX)) { //skip envs, these get filled in later. - toRet.add("-D" + entry.getKey() + "=" + (Utilities.isWindows() ? entry.getValue().replace(quote, escaped) : entry.getValue().replace(quote, "'"))); + String s = "-D" + entry.getKey() + "=" + (Utilities.isWindows() ? entry.getValue().replace(quote, escaped) : entry.getValue().replace(quote, "'")); + if (Utilities.isWindows() && s.endsWith("\"")) { + s = s + " "; } + toRet.add(s); + System.out.println("d=" + s); } + } if (config.isOffline() != null && config.isOffline().booleanValue()) { toRet.add("--offline");//NOI18N