Do not append the separator into the MODULE variable, since this can cause problems.
Append it instead to the private copy of MODULE variable.
Some execution strings rely of the fact, that variables do not end with separators.
This is a fix of issue #27422.
1.1 --- a/vcscore/src/org/netbeans/modules/vcscore/VcsAction.java Wed Sep 18 15:03:35 2002 +0000
1.2 +++ b/vcscore/src/org/netbeans/modules/vcscore/VcsAction.java Wed Sep 18 15:24:54 2002 +0000
1.3 @@ -1100,10 +1100,12 @@
1.4 }
1.5 if (module.length() > 0) {
1.6 module = module.replace('/', separatorChar);
1.7 - module += separatorChar;
1.8 module = valueAdjustment.adjustVarValue(module);
1.9 }
1.10 vars.put("MODULE", module);
1.11 + if (module.length() > 0) {
1.12 + module += separatorChar;
1.13 + }
1.14 vars.put("PATH", fullName); // NOI18N
1.15 vars.put("QPATH", (fullName.length() > 0) ? quoting+fullName+quoting : fullName); // NOI18N
1.16 vars.put("DIR", path); // NOI18N