Merge pull request #2489 from zhhl/2213-AntVersionWithUNCPathProblem

2213: ant 1.9.7 passes correct UNC format to Junit, but lower version…
This commit is contained in:
Richard Cordovano 2017-01-27 14:41:49 -05:00 committed by GitHub
commit 4eba2f2f74

View File

@ -90,7 +90,10 @@ public class RegressionTest extends TestCase {
* @return escaped path the the file/directory location.
*/
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;
} else {
return path;