2213: ant 1.9.7 passes correct UNC format to Junit, but lower version has problems

This commit is contained in:
U-BASIS\zhaohui 2017-01-27 13:35:06 -05:00
parent bda2aea568
commit 9be751bd9b

View File

@ -91,7 +91,10 @@ public class RegressionTest extends TestCase {
* @return escaped path the the file/directory location. * @return escaped path the the file/directory location.
*/ */
private static String getEscapedPath(String path) { private static String getEscapedPath(String path) {
if (path.startsWith("\\")) { if (path.startsWith("\\\\")) { //already has escaped to \\\\NetworkLocation
return path;
}
else if (path.startsWith("\\")) {
return "\\" + path; return "\\" + path;
} else { } else {
return path; return path;